nrpe 2.0 with AIX 4.3.2

Simon Kitching simon at ecnetwork.co.nz
Tue Jan 20 03:10:47 CET 2004


On Tue, 2004-01-20 at 05:05, Aaron Levitt wrote:
> Simon-
> 
> Thanks for the information, would you mind posting a patch or what
> changes you made to the code of check_nrpe?

I didn't make any changes to check_nrpe. 

The problem is actually with the nrpe program. But I haven't made any
changes to that either (though I think some *should* be made).

I was actually running a custom check program (checking age of messages
on an IBM MQ queue). By changing this to ensure that no output ever went
to STDERR, I resolved *my* problem without changing nrpe.

I suggest you do the same; either by changing the check program you are
running, or by *wrapping* the check program in a shell script which
suppresses STDERR.

eg if you have this in your nrpe config file:
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150
-c 200

then instead do this:
command[check_total_procs]=/usr/local/nagios/libexec/safecheckprocs -w
150 -c 200

where "safecheckprocs" is a shellscript that does something like:
  exec /usr/local/nagios/libexec/check_procs $@ 2>&1


Note that this redirects any STDERR from the program to stdout instead.
When you run check_nrpe, you should then get the error message instead
of the "CRC32" error.

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