Page 1 of 1

Check_NRPE Error

Posted: Fri Mar 03, 2017 8:27 am
by Ravina
Hi,
I'm getting the below error ,Please help
[root@bdl09node04 log]# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
CHECK_NRPE: Error - Could not connect to 127.0.0.1: Connection reset by peer
[root@bdl09node04 log]#

[root@bdl09node04 log]# netstat -at | egrep "nrpe|5666"
tcp 0 0 0.0.0.0:nrpe 0.0.0.0:* LISTEN
tcp6 0 0 [::]:nrpe [::]:* LISTEN
[root@bdl09node04 log]#

Regards,
Anuragh

Re: Check_NRPE Error

Posted: Fri Mar 03, 2017 9:16 am
by rkennedy
There is no point in running check_nrpe against 127.0.0.1, really. What exactly are you looking to accomplish out of this?

Re: Check_NRPE Error

Posted: Fri Mar 03, 2017 10:44 am
by dwhitfield
What version of NRPE are you using? Are you eventually trying to connect to a remote host? If so, what OS/version is the remote host running?

As @rkennedy mentioned, NRPE is the Nagios *Remote* Plugin Executor. If you are trying to monitor the localhost, then you can just run the checks directly.

What version of Core are you using? Was it compiled from source or installed from distro repos? On what OS/version is nagios running? cat /etc/*-release may be of use.