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.
Running the NRPE agent on a Nagios XI server
Running the NRPE agent on a Nagios XI server
You do not have the required permissions to view the files attached to this post.
Re: Running the NRPE agent on a Nagios XI server
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.
For RHEL / Centos 7, run this
Then you should be able to use xinetd to start the NRPE agent.
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 stopCode: Select all
systemctl disable nrpe
systemctl stop nrpeBe sure to check out our Knowledgebase for helpful articles and solutions!