Installing NRPE on CentOS & Add them to Nagios

  1. Run “yum install epel-release”
    image

  2. Install NRPE & its plug-ins “yum install nrpe nagios-plugins-users nagios-plugins-load nagios-plugins-swap nagios-plugins-disk nagios-plugins-procs”

  3. Change allowed host - add Nagios servers"vi /etc/nagios/nrpe.cfg"
    image

  4. Restart NRPE “systemctl restart nrpe”


Returning to Nagios server:

  1. Run “vi /usr/local/nagios/etc/nagios.cfg”, and confirm
    image

  2. Amend the correct cfg to add the target server " vi /usr/local/nagios/etc/objects/localhost.cfg"
    image

Important!
3. To verify the cfg using “/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg”
image

  1. Restart Nagios service “systemctl restart nagios.service”

After that, remember to:

  1. Add the host to any host group
    image
    image