-
Run “yum install epel-release”
-
Install NRPE & its plug-ins “yum install nrpe nagios-plugins-users nagios-plugins-load nagios-plugins-swap nagios-plugins-disk nagios-plugins-procs”
-
Change allowed host - add Nagios servers"vi /etc/nagios/nrpe.cfg"
-
Restart NRPE “systemctl restart nrpe”
Returning to Nagios server:
-
Run “vi /usr/local/nagios/etc/nagios.cfg”, and confirm
-
Amend the correct cfg to add the target server " vi /usr/local/nagios/etc/objects/localhost.cfg"
Important!
3. To verify the cfg using “/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg”
- Restart Nagios service “systemctl restart nagios.service”