Page 1 of 1

Running the NRPE agent on a Nagios XI server

Posted: Wed Feb 13, 2019 11:26 am
by DFaught
We have installed the NRPE agent to run under xinetd on most of our Linux machines. For some reason that agent doesn't seem to like to run that way on the Nagios XI servers themselves. We are trying to monitor all of our Nagios XI servers from other Nagios XI servers. If we configure the agent to run as a service rather than under xinetd then it works fine. Any clues as to why that might be?

The error that we get on the monitoring server is "Connection Refused By Host". Attached is a System Profile from an XI server that has the NRPE agent installed. I think that at the moment it is running the agent as a service though.

Thanks for any help that you can provide.

Re: Running the NRPE agent on a Nagios XI server

Posted: Wed Feb 13, 2019 3:43 pm
by tgriep
The NRPE agent in the Nagios Server is setup to run as a service and not by xinetd.
You can leave it to run as a service and add your changes / updated to the NRPE config files or if you want to use xinetd, you would have to disable the service from starting.

On RHEL / Centos 6, you would run this to disable it and stop the service.

Code: Select all

chkconfig nrpe off
service nrpe stop
For RHEL / Centos 7, run this

Code: Select all

systemctl disable nrpe
systemctl stop nrpe
Then you should be able to use xinetd to start the NRPE agent.