Ansible role to install "Monitoring Plugins" and configure a host to monitor via NRPE or SSH.
Find a file
2023-10-26 20:45:28 +02:00
defaults Rework some parts, changes for new Ansible versions 2019-11-13 20:51:27 +00: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 "include" endlich deprecated mit Core 2.14 2022-11-30 14:23:13 +01:00
templates SSH: Key nur von bestimmten IPs zulassen 2023-10-25 12:26:12 +02:00
vars Fix NRPE pid file 2021-02-18 12:59:28 +01:00
.gitignore Feature: Copy custom plugins 2018-10-02 22:44:11 +02:00
monitored.yml Playbook sauber formatiert, EPEL auskommentiert 2023-10-25 12:35:32 +02:00
README.md Added README.md 2023-10-26 20:45:28 +02: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

Dependencies

  • Installed Apache web server

Example Playbook

- hosts: web-servers
  roles:
     - role: apache2-backend-mod_remoteip
       apache2_backend_mod_remoteip_proxy: 192.168.0.0/24

License

GPL-2.0-or-later

Author Information

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