sudo -i sudo yum install epel-release
sudo yum install nrpe nagios-plugins-all
sudo vi /etc/nagios/nrpe.cfg Find the allowed_hosts directive, and add the private IP address of your Nagios server allowed_hosts=127.0.0.1,10.132.224.168 Save and exit :wq
sudo systemctl start nrpe.service sudo systemctl enable nrpe.service
sudo -i
sudo vi /usr/local/nagios/etc/servers/yourhost1.cfg
define host { use linux-server host_name slave1 alias slave1 configuration with nagios server address 10.128.0.4 max_check_attempts 5 check_period 24x7 notification_interval 30 notification_period 24x7 } define service { use generic-service host_name slave1 service_description PING check_command check_ping!100.0,20%!500.0,60% } save and exit :wq
sudo systemctl reload nagios.service