nrpe processes not communicating

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
Cerephim
Posts: 4
Joined: Tue Oct 02, 2012 12:52 pm

nrpe processes not communicating

Post by Cerephim »

When I issue the command from the client:
[root@dbserver nrpe]# /usr/local/nagios/nrpe/libexec/check_load -w 50,55,60 -c 60,65,70
OK - load average: 0.35, 0.41, 0.37|load1=0.350;50.000;60.000;0; load5=0.410;55.000;65.000;0; load15=0.370;60.000;70.000;0;
It works.

But when I issue the command from the nagios server:
[root@ngserver lib]# /usr/local/nagios/nrpe/libexec/check_nrpe -c check_load -nH dbserver
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

No joy.

There are no informative messages in the /var/log/messages file on the remote box (dbserver).

Recently, we ran yum update on the dbserver. The nrpe processes were working well prior to that.
Some of the custom nrpe checks are working well.

So it seems to me that the nrpe on ngserver is not talking to the nrpe on dbserver.

I can telnet to dbserver:5666, so I know the port is listening.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nrpe processes not communicating

Post by slansing »

So from what it looks like you are trying to check against the Nagios server and not an external host? I do not see the host information defined anywhere in the second command.
Cerephim
Posts: 4
Joined: Tue Oct 02, 2012 12:52 pm

Re: nrpe processes not communicating

Post by Cerephim »

In the command:
[root@ngserver lib]# /usr/local/nagios/nrpe/libexec/check_nrpe -c check_load -nH dbserver

ngserver (where I'm executing the command) is the Nagios server, and dbserver is the remote box.
I was under the impression that the -H flag indicated the remote host.

Or perhaps I'm not understanding your reply.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: nrpe processes not communicating

Post by yancy »

Cerephim,

You have -nH in your command line arguments.

I think you meant -H <host ip address> -n

Try:
/usr/local/nagios/nrpe/libexec/check_nrpe -H dbserver -c check_load
Cerephim
Posts: 4
Joined: Tue Oct 02, 2012 12:52 pm

Re: nrpe processes not communicating

Post by Cerephim »

:(
[root@ngserver ~]# /usr/local/nagios/nrpe/libexec/check_nrpe -H dbserver -c check_load
CHECK_NRPE: Error - Could not complete SSL handshake.
[root@ngserver ~]# /usr/local/nagios/nrpe/libexec/check_nrpe -H dbserver -c check_load -n
CHECK_NRPE: Error receiving data from daemon.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: nrpe processes not communicating

Post by yancy »

Cerephim,

Is the NRPE agent responding at all?

try without any arguments:

Code: Select all

 /usr/local/nagios/nrpe/libexec/check_nrpe -H dbserver 
Regards,

-Yancy
Cerephim
Posts: 4
Joined: Tue Oct 02, 2012 12:52 pm

Re: nrpe processes not communicating [SOLVED]

Post by Cerephim »

Apparently, the nrpe executable on dbserver was compiled using a very old library. When we did the yum update, the library must have gotten overwritten with one incompatible with the npre on the box.

When I replaced npre with a more current one, things started working.

Thanks for all your help!
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: nrpe processes not communicating

Post by yancy »

Cerephim,

No problem, glad you resolved the issue.

Regards,

-Yancy
Locked