A role to install the Nagios NRPE client onto an Ubuntu/Debian machine and open up the required firewall ports (5666) in ufw (if used) to allow communication with the Nagios Server.
You should be running your own Nagios, Icinga2 or other Nagios plugin compatible server.
Fully qualified domain name of your Nagios Server
install_nagios_client_nagios_server_fqdn: "mynagios.mydomain.com"
The fully qualified domain name or IP address of the machine you are adding to be monitored
install_nagios_client_server_fqdn: "myserver-to-monitor.com"
None
- hosts: your_server_to_monitor
vars_files:
- vars/main.yml
roles:
- { role: stancel.install-nagios-client }
or
- hosts: your_server_to_monitor
vars:
install_nagios_client_nagios_server_fqdn: "nagios.mydomain.com"
install_nagios_client_server_fqdn: "myserver-to-monitor.com"
roles:
- { role: stancel.install-nagios-client }
BSD