hspaans.nrpe

Role Name

Install and set up NRPE

Requirements

No special requirements, as the nrpe package will be installed.

Role Variables

Default settings are in defaults/main.yml.

Dependencies

This role does not rely on any other Ansible Galaxy roles.

Example Playbook

---
- hosts: servers
  vars:
    nrpe_server_allowed_hosts:
      - 10.0.10.0/24
      - 10.0.11.2
      - 127.0.0.1
    nrpe_plugin_packages:
      - nagios-plugins-disk
      - nagios-plugins-nagios
      - nagios-plugins-users
    nrpe_command:
      check_disk_all:
        script: check_disk
        option: -w 80 -c 90
      check_users:
        script: check_users2
        option: -w 1 -c 1
      check_nagios:
        script: check_nagios
        option: -F /var/log/nagios/nagios.log -e 15 -C nagios
  roles:
    - { role: hspaans.nrpe, become: true }

License

MIT

Author Information

This role was created in 2020 by Hans Spaans.

Informazioni sul progetto

Ansible Role for NRPE

Installa
ansible-galaxy install hspaans.nrpe
Licenza
mit
Download
18.4k
Proprietario
GitBiz evangelist that follows the enlightenment path of CI/CD towards NoOps.