Running the NRPE agent on a Nagios XI server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DFaught
Posts: 62
Joined: Tue Sep 26, 2017 12:50 pm

Running the NRPE agent on a Nagios XI server

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Running the NRPE agent on a Nagios XI server

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked