nrpe 2.0 with AIX 4.3.2

Simon Kitching simon at ecnetwork.co.nz
Sat Jan 17 04:12:09 CET 2004


Hi Aaron,

On Sat, 2004-01-17 at 05:34, Aaron Levitt wrote:
> Unfortunately, I didn't see it, and this article (along with the rest of
> the list archive) no longer seems to exist on sourceforge.  However, if
> you could give me the subject of the thread I could probably locate it
> in the gmane archive.

Below is the original posting re "CRC32" error when using
check_nrpe/nrpe. PS: the nagios archives appear to be up again...

Sent: Dec 22
Author: Simon Kitching
Subject: nrpe: fails when check command outputs to stderr

Hi,
 
 I have been having some problems with "check_nrpe" reporting:
   CHECK_NRPE: Response packet had invalid CRC32.
 
 I believe I have located the cause of the problem, which is as
 follows...
 
 When the nrpe app forks a child and calls popen(...) to execute the
 target command, the STDERR filedescriptor isn't overridden. Therefore if
 the target command ever outputs data to STDERR, that goes via the
 inherited STDERR: straight back across the socket to the check_nrpe
 process! Only *later* does the nrpe process send the packet version,
 checksum, and message. The result is obvious: check_nrpe looks for the
 checksum but finds only the STDERR output from the check command and so
 reports "invalid CRC32".
 
 It should be simple to duplicate this problem: a shellscript which
 prints to STDERR should do the trick I think.
 
 I have fixed this by ensuring my (custom) check command suppresses all
 STDERR output, but I think it would be nice to fix this in nrpe as the
 error message is difficult to understand. Perhaps also an FAQ entry
 would be good for this?
 
 If you don't have time to look into this, but would be willing to look
 at a patch for nrpe.c then please let me know and I will prepare one.
 
 Thanks for some great software!
 
 Regards,
 
 Simon




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list