Check_NRPE Error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Ravina
Posts: 7
Joined: Wed Feb 08, 2017 4:06 am

Check_NRPE Error

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check_NRPE Error

Post 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?
Former Nagios Employee
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check_NRPE Error

Post 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.
Locked