[Nagiosplug-help] How to interpret CRC32 errors?

Bill Jacqmein wrjacqmein at gmail.com
Thu Aug 4 23:20:01 CEST 2005


Just my two cents, but if ssh is available why not just use the check_by_ssh 
command to run the script and return the result. 


On 8/4/05, Andreas Ericsson <ae at op5.se> wrote:
> 
> Ralph.Grothe at itdz-berlin.de wrote:
> >>You're asking people to help you on their spare time. Most of
> >
> > your
> >
> >>questions so far have been either no-brainers that you would
> >>have been
> >>able to figure out for yourself had you made the effort, or
> >>of the kind
> >>that would take considerable effort to answer properly.
> >
> >
> > I know that I waste the time of people who are willing to help
> > me.
> >
> 
> I wasn't remarking on your questions per se, but the fact that you
> seemed annoyed about an answer you got.
> 
> That said, I'll just cut to the chase.
> 
> >
> >>Did you log in as the NRPE user or did you just su? su'ing
> >>maintains the
> >>environment settings of the old user, which will have effect on
> >
> > some
> >
> >>programs.
> >
> >
> > No simple su-ing.
> > Even if I had, I would have taken care to do a full "su -" to
> > also obtain the account's environment.
> > I am and was logged in under the account that I configured inetd
> > to run the nrpe server as
> > (see 5th field, or 4th field for you)
> >
> > [saz at inwo2]
> > $ id
> > uid=102(saz) gid=20(users) groups=102(saz)
> >
> > [saz at inwo2]
> > $ grep nrpe /etc/inetd.conf
> > nrpe stream tcp nowait saz /usr/local/nagios/sbin/nrpe nrpe -c
> > /usr/local/nagios/etc/nrpe.cfg -i
> >
> >
> >
> >>check_hpva.sh prints something to stderr. This causes the
> >>NRPE daemon to
> >>miscalculate the checksum. When the plugin does the same it
> >>arrives at
> >>an invalid result.
> >
> >
> >
> > My script isn't writing anything to stderr, and it's outputting a
> > single line to stdout
> > (which is I think is in accordance to plug-in developer's
> > guidelines)
> >
> 
> Indeed it is. However, one or more of the commands executed may print
> something to stderr, which will show up as stderr output.
> 
> >
> > [saz at inwo2]
> > $ /usr/local/nagios/libexec/check_hpva.sh 2>/dev/null | cat -n
> > 1 OK: HP Virtual Array "va" on inwo2 all FRUs State
> > Good
> >
> 
> Not good. Or more accurate; Perhaps good. You're redirecting stderr to
> /dev/null, so it's impossible to know if the script (or any of its
> commands) print anything to it.
> 
> --
> Andreas Ericsson andreas.ericsson at op5.se
> OP5 AB www.op5.se <http://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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050804/fe674bf5/attachment.html>


More information about the Users mailing list