Ansible role to install "Monitoring Plugins" and configure a host to monitor via NRPE or SSH.
Find a file
2023-12-14 11:03:56 +01:00
defaults Fixed SSH login bug with Alpine 2023-12-02 00:25:54 +01:00
files/plugins_custom Better name for placeholder 2018-10-18 12:46:00 +02:00
meta Add missing meta with dep to EPEL 2022-03-17 09:58:32 +01:00
tasks Fixed SSH login bug with Alpine 2023-12-02 00:25:54 +01:00
templates SSH: Key nur von bestimmten IPs zulassen 2023-10-25 12:26:12 +02:00
vars Fixed SSH login bug with Alpine 2023-12-02 00:25:54 +01:00
.gitignore Feature: Copy custom plugins 2018-10-02 22:44:11 +02:00
monitored.yml Translated comment 2023-10-26 21:00:26 +02:00
README.md README: fixed example playbook 2023-12-14 11:03:56 +01:00

monitored

Prepare remote machine for monitoring with Naemon/Nagios/Icinga via NRPE and/or SSH

Requirements

  • Role "epel" for RedHat-like systems

Role Variables

Defaults (config/overwrite required):

  • monitored_by_nrpe (defaults: False): install/configure NRPE
  • monitored_by_ssh (defaults: False): install/configure SSH incl. wrapper script
  • monitored_server_ips (defaults: [127.0.0.1,]: list(!) of monitoring server ips

Required for SSH:

  • monitored_ssh_key_files (defaults: []): list(!) of SSH key strings(!)

Common variables:

  • monitored_packages_install (defaults: True): install plugings
  • monitored_sudo_file (defaults: /etc/sudoers.d/monitored): sudoers file
  • monitored_sudo_commands: list of sudoers config lines
  • monitored_packages_additional(_nrpe|_ssh): additional packages to install
  • monitored_plugins_custom: additional plugin scripts to copy
  • monitored_plugins_custom_path (defaults: /usr/local/plugins/): path for additional plugins

NRPE:

  • monitored_nrpe_*: NRPE config variables

SSH:

  • monitored_ssh_key_wrapper: local path/filename of wrapper
  • monitored_ssh_key_wrapper_src: remote path and filename of wrapper
  • monitored_ssh_key_wrapper_*: file attributes of wrapper

Example Playbook

- hosts: all
  roles:
    - role: monitored
      when: monitored_dont|default(False) != True

License

GPL-2.0-or-later

Author Information

Sven Velt - sven-ansiblerole@velt.biz https://git.velt.biz/velt.biz/