[Nagiosplug-help] How to interpret CRC32 e rrors?

Andreas Ericsson ae at op5.se
Thu Aug 4 19:27:38 CEST 2005


Ralph.Grothe at itdz-berlin.de wrote:
> Good news (for me).
> 
> I found the remedy against unruly CRC32 NRPE chokes.
> 
> When I tested my script at the shell I made sure by redirecting
> stderr to /dev/null
> that indeed nothing was sent there.
> 
> However, when this script got executed (or rather crchecked) by
> nrpe
> something must have sneaked to stderr.
> 
> So I simply put this statement in the beginning of my script:
> 
> [saz at inwo2]
> $ grep -n exec\  /usr/local/nagios/libexec/check_hpva.sh
> 6:exec 2>/dev/null
> 
> 
> By shutting stderr the a priori crcheck cannot produce
> differences.
> 
> Now I can execute through nrpe
> 
> [saz at inwo2]
> $ /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c
> check_hpva_INWO2
> OK:     HP Virtual Array "va" on inwo2 all FRUs State Good
> 
> 
> 
> And even from the nagios server remotely this works now
> 
> 
> [nagios at daisy:~]
> $ libexec/check_nrpe -H inwo2 -c check_hpva_INWO2
> OK:     HP Virtual Array "va" on inwo2 all FRUs State Good
> 
> 
> 
> Lesson learnt, for all own plug-ins you write explicitly close
> stderr
> to avoid any CRC32 annoyances.
> 
> So this conclusion would take only one line to be added to the
> documentation!
> 
> I again rechecked the "Nagios plug-in development guidelines" but
> didn't find such a reference.
> It would have saved me two hours and you my reduntant noise.
> 

That's because this is a shortcoming in NRPE and not in the plugins. 
Nagios (who receives all its checkresults firsthand, in a manner of 
speaking) doesn't do any checksumming, since it could only relate it to 
whatever checksum itself would calculate later on.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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