[Nagiosplug-devel] Weird plugin failure with nrpe

Gary W. Smith gary at primeexalia.com
Wed Sep 13 06:25:45 CEST 2006


I have two boxes with different distro's.  Box 1 is a RHEL4 (testnodeb).
On this box everything seems to work fine (or fine enough).  Box 2 is
based on rPath (testnodec).  I have compiled and installed the
nagios-plugins on both boxes.  They appear to work fine from the command
line.  Both return the expected results.  We run into a problem when
calling check_nrpe with the check_mailq command.  Here is the debug
output:

Sep 12 20:09:35 testnodec nrpe[10599]: Connection from 10.0.12.30 port
34830
Sep 12 20:09:35 testnodec nrpe[10599]: Host address is in allowed_hosts
Sep 12 20:09:35 testnodec nrpe[10599]: Handling the connection...
Sep 12 20:09:35 testnodec nrpe[10599]: Host is asking for command
'check_load' to be run...
Sep 12 20:09:35 testnodec nrpe[10599]: Running command:
/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
Sep 12 20:09:35 testnodec nrpe[10599]: Command completed with return
code 0 and output: OK - load average: 0.15, 0.24,
0.12|load1=0.150;15.000;30.000;0; load5=0.240;10.000;25.000;0;
load15=0.120;5.000;20.000;0;  
Sep 12 20:09:35 testnodec nrpe[10599]: Return Code: 0, Output: OK - load
average: 0.15, 0.24, 0.12|load1=0.150;15.000;30.000;0;
load5=0.240;10.000;25.000;0; load15=0.120;5.000;20.000;0; 
Sep 12 20:09:35 testnodec nrpe[10599]: Connection from 10.0.12.30
closed.
Sep 12 20:09:37 testnodec nrpe[10603]: Connection from 10.0.12.30 port
35086
Sep 12 20:09:37 testnodec nrpe[10603]: Host address is in allowed_hosts
Sep 12 20:09:37 testnodec nrpe[10603]: Handling the connection...
Sep 12 20:09:37 testnodec nrpe[10603]: Host is asking for command
'check_mailq' to be run...
Sep 12 20:09:37 testnodec nrpe[10603]: Running command:
/usr/lib/nagios/plugins/check_mailq -w 50 -c 100 -M postfix
Sep 12 20:09:38 testnodec nrpe[10603]: Command completed with return
code 2 and output: 
Sep 12 20:09:38 testnodec nrpe[10603]: Return Code: 2, Output: NRPE:
Unable to read output
Sep 12 20:09:38 testnodec nrpe[10603]: Connection from 10.0.12.30
closed.

[root at testnodec plugins]# /usr/lib/nagios/plugins/check_mailq -w 50 -c
100 -M postfix
OK: mailq (7) is below threshold (50/100)|unsent=7;50;100;0

On the rPath box you can see that running check_mailq from the command
line works just fine.  But calling it from nrpe ends with Unable to read
output.  Again, on the RHEL4 box everything works fine.

My intent is to port this over to rPath.  I have also verified that the
check_mailq file (which is a perl script) is identical on both boxes.

I was wondering if anyone has some ideas on this?

Gary Wayne Smith

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20060912/9fe9c081/attachment.html>


More information about the Devel mailing list