Installs the Nagios NRPE agent and some custom checks on the target.
Currently only tested on Debian Wheezy 64
Theses variables are defined by default, and can be overriden for this role:
nagios_plugins_directory: /usr/lib/nagios/plugins
nagios_server: centreon
nagios_user: nagios
nagios_group: nagios
nrpe_port: 5666
nrpe_pid_file: /var/run/nagios/nrpe.pid
You can and specify other template files for handling specific NRPE commands with:
vars:
nrpe_extra_commands:
- <template>
And just put template.cfg files in the role template directory
ansible-galaxy install bobmaerten.nagios-nrpe-server
Also check the Ansible Galaxy about page.
MIT
By Bob Maerten