Run this command as root on the Centos7 server.
You should see something like this
That means that the nrpe binary package is installed.
To stop it, run this
To remove it, run this
Then check to see if the compiled version is installed, the following commands should show valid output.
Code: Select all
ls -l /etc/xinetd.d/nrpe
ls -l /usr/local/nagios/bin/nrpe
ls -l /usr/local/nagios/etc/nrpe.cfg
If they are all there, edit this file
Verify that is is set like this (Replace xxx.xxx.xxx.xxx with the IP address of the Nagios server)
Code: Select all
service nrpe
{
disable = no
per_source = 25
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
only_from = 127.0.0.1 xxx.xxx.xxx.xxx
log_on_success =
}
Restart xinetd
Then to test it, run this from the nagios server. (Replace xxx.xxx.xxx.xxx with the IP address of the Remote Centos 7 server)
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx
You should see the version of the NRPE agent.