Page 1 of 1

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

Posted: Tue Mar 12, 2019 8:42 am
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

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

Posted: Tue Mar 12, 2019 9:40 am
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

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

Posted: Wed Mar 13, 2019 9:43 am
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.

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

Posted: Wed Mar 13, 2019 12:06 pm
by lmiltchev
I replied via a PM.