[Nagiosplug-devel] Possible bug in NRPE dated 22/01/06 - No output returned from daemon

Jim Pye jim.pye at pyenet.co.nz
Sun Jan 22 18:12:01 CET 2006


Hi list



Am getting the error:

CHECK_NRPE: No output returned from daemon on the nagios console.



Following setup:

Debug option on nrpe turned on.



Part of the nrpe.cfg file:

command[check_users]=/usr/local/nagios/libexec/check_users -w
 5 -c 10

command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5
 -c 30,25,20

command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20
 -c 10 -p /dev/hda1

command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20
 -c 10 -p /dev/hdb1

command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs
 -w 5 -c 10 -s Z

command[check_total_procs]=/usr/local/nagios/libexec/check_procs
 -w 150 -c 200





Output /var/log/messages when connection from nagios host connects:

Jan 23 14:18:16 xxx nrpe[xxxx]: Added command[check_users]=/usr/local/n
agios/libexec/check_users

Jan 23 14:18:16 xxx nrpe[xxxx]: Added command[check_load]=/usr/local/na
gios/libexec/check_load

Jan 23 14:18:16 xxx nrpe[xxxx]: Added command[check_disk1]=/usr/local/n
agios/libexec/check_disk

Jan 23 14:18:16 xxx nrpe[xxxx]: Added command[check_disk2]=/usr/local/n
agios/libexec/check_disk

Jan 23 14:18:16 xxx nrpe[xxxx]: Added command[check_zombie_procs]=/usr/
local/nagios/libexec/check_procs

Jan 23 14:18:16 xxx nrpe[xxxx]: Added command[check_total_procs]=/usr/l
ocal/nagios/libexec/check_procs

Jan 23 14:18:16 xxx nrpe[xxxx]: Handling the connection...

Jan 23 14:18:16 xxx nrpe[xxxx]: Host is asking for command 'check_users'
 to be run...

Jan 23 14:18:16 xxx nrpe[xxxx]: Running command: /usr/local/nagios/libexe
c/check_users

Jan 23 14:18:16 xxx nrpe[xxxx]: Command completed with return code
 3 and output:

Jan 23 14:18:16 xxx nrpe[xxxx]: Return Code: 3, Output:



On monitored host manually run the ./check_users command as nagios
 user:

When run as ./check_users

results in

== blank line ==

== blank line ==

Usage: check_users -w <users> -c <users>



When run as ./check_users -w 5 -c 10

results in

USERS OK - 4 users currently logged in |users=4;5;10;0





To me it seems that the nrpe program, when triggered via the ./check_nrpe
 command on the nagios host, is not parsing the config file correctly
 and is not attaching the command options correctly.



Reading the source, the Running command: line of the log file should
 have the switches included.



I have tried to quote "" the command in the config file but this
 did not work. 



Any thoughts?



nagios v2.0rc2 Jan 10 2006

and

nrpe v2.2 - 01/22/2006



Cheers

Jim





- Jim Pye (3dkiwi)



-----------------------

The mailing list archive is found here:

http://www.nagiosexchange.org/nagiosplug-devel.31.0.html

				




More information about the Devel mailing list