CHECK_NRPE: Error - Could not connect to xx.x.xx.xx: Connect

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
naranant
Posts: 90
Joined: Tue Oct 24, 2017 10:50 am

CHECK_NRPE: Error - Could not connect to xx.x.xx.xx: Connect

Post by naranant »

Team,

I have a couple of instance of Nagios XI running and am monitoring each instance of Nagios XI in the opposite instances.

After the recent upgrade to 5.5.10 getting the below error for all instance of Nagios XI. Getting this error only for Nagios XI instance host where as i am able to monitor other linux OS without any issues.

CHECK_NRPE: Error - Could not connect to xx.x.xx.xx: Connection reset by peer

Attaching the error screenshot i get this error only for few services all instance of Nagios XI are running on Red hat enterprise version 7.5
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_NRPE: Error - Could not connect to xx.x.xx.xx: Con

Post by lmiltchev »

Is NRPE running under xinetd or as a "standalone daemon" on the remote box? Can you run the following commands on the client machine and show the output?

Code: Select all

service xinetd status
service nrpe status
ps axuw | grep nrpe
netstat -at | grep nrpe
If NRPE is running as a standalone daemon, you would need to add the Nagios XI server's IP address to the "allowed_hosts" line in the nrpe.cfg file:

Code: Select all

allowed_hosts=127.0.0.1,<Nagios XI server ip>
make sure you have the following line:

Code: Select all

dont_blame_nrpe=1
save, exit, and restart NRPE, so that changes can take effect.

Code: Select all

service nrpe restart
Be sure to check out our Knowledgebase for helpful articles and solutions!
naranant
Posts: 90
Joined: Tue Oct 24, 2017 10:50 am

Re: CHECK_NRPE: Error - Could not connect to xx.x.xx.xx: Con

Post by naranant »

Hi,

NRPE running under xinetd and host was allowed /etc/xinetd.d/nrpe.cfg

I will PM the output for the commands to you.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_NRPE: Error - Could not connect to xx.x.xx.xx: Con

Post by lmiltchev »

I replied via a PM.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked