[Nagiosplug-help] How to interpret CRC32 errors?

HP Geeza getbacktome3 at hotmail.com
Fri Aug 5 18:09:43 CEST 2005


All,

I have now started from stracth and tried to setup nrpe...however when i now 
run the command from my nagios box i see the following error message in the 
event log on the remote windows machine:

NRPE_NT: Error: Request packed has invalid CRC32
NRPE_NT: Client request was invalid, bailing out.......

HAS ANY BODY seen this behaviour before???

Ralph was this something you was faced with???

Any help would be much appreciated...

>From: Ralph.Grothe at itdz-berlin.de
>To: getbacktome3 at hotmail.com
>Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to interpret CRC32 
>errors?
>Date: Fri, 5 Aug 2005 16:23:52 +0200
>
>I'm sorry, I hadn't looked carefully enough at the source.
>
>In the begining there's a macro conditional
>
>#ifdef HAVE_SSL
>SSL_METHOD *meth;
>SSL_CTX *ctx;
>SSL *ssl;
>int use_ssl=TRUE;
>#else
>int use_ssl=FALSE;
>#endif
>
>
>where they check if the Makefile has the macro HAVE_SSL defined.
>
>Looks like your binary was built with SSL enabled.
>
>You would have to compile after a "configure --disable-ssl ..."
>without SSL support.
>
>Maybe you can ask in the mailing list if someone has built a
>binary for Win32
>with SSL disabled, or knows a download site?
>Have you checked the site where you got this one if there are
>different versions?
>Or does a README say what to do to suppress SSL?
>
>If you can only get nrpe for win32 with SSL then you would have
>to create SSL certificate
>(you can make up your own certification authority)
>If you use OpenSSL it's not too difficult because it comes with a
>Perl script that will do
>that for you.
>
>But I can't believe that there is no nrpe for windows without
>SSL.
>
>
>
> > -----Original Message-----
> > From: HP Geeza [mailto:getbacktome3 at hotmail.com]
> > Sent: Friday, August 05, 2005 4:14 PM
> > To: Ralph.Grothe at itdz-berlin.de
> > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to
> > interpret CRC32
> > errors?
> >
> >
> > sorry for being such a pain...but im still stuck!!!
> >
> > ive tried running:
> >
> > ./check_nrpe <ip address of remote machine> -n -c reboot_server
> >
> > But that gives me an error: Incorrect command line arguments
>supplied
> >
> > I dont have to re compile or something do i?? - if soo what
> > commands will i
> > need to run?
> >
> > Any ideas??? - please help.  Yes you are rite this nrpe stuff
> > isn't well
> > documented at all....im sooo confused
> >
> >
> > >From: Ralph.Grothe at itdz-berlin.de
> > >To: getbacktome3 at hotmail.com
> > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to
> > interpret CRC32
> > >errors?
> > >Date: Fri, 5 Aug 2005 16:06:19 +0200
> > >
> > >Hm, I've so far disabled SSL altogether with my nrpe builds.
> > >SSL/TLS would only complicate things.
> > >I will try this when my basic setting works.
> > >
> > >I guess you used a prebuilt binary?
> > >
> > >Wait, I've just looked in the source code of check_nrpe.c,
> > >and in the switch-case block where the **argv is parsed there
>is
> > >an entry for option -n
> > >where the comment reads that you should use this switch to
> > >disable SSL.
> > >
> > >So I would suggest that you put in your check_nrpe call an
> > >additional "-n".
> > >
> > >That's what nags me about nagios, that many features aren't
>well
> > >documented.
> > >If you run check_nrpe --help they won't tell you anything
>about
> > >-n.
> > >
> > >
> > > > -----Original Message-----
> > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com]
> > > > Sent: Friday, August 05, 2005 3:52 PM
> > > > To: Ralph.Grothe at itdz-berlin.de
> > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to
> > > > interpret CRC32
> > > > errors?
> > > >
> > > >
> > > > Hi Ralph
> > > >
> > > > Ive managed to install the nrpe service on my windows host
> > > > but when i run
> > > > the command from my nagios box the event log on the windows
> > > > machine says
> > > > that the ssl handshake failed....i am not too sure how to
> > > > configure ssl...
> > > >
> > > > is there a way round this problem?
> > > >
> > > >
> > > > >From: Ralph.Grothe at itdz-berlin.de
> > > > >To: getbacktome3 at hotmail.com
> > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to
> > > > interpret CRC32
> > > > >errors?
> > > > >Date: Fri, 5 Aug 2005 15:35:20 +0200
> > > > >
> > > > >Hi Geeza,
> > > > >
> > > > >you can't run this from your Linux host (I suppose this is
> > >your
> > > > >Nagios server, whereas the Windows box you want to shut
>down
> > >is
> > > > >your remote host),
> > > > >because Win32.pm is not made for Linux.
> > > > >
> > > > >I think you have to install the Windows version of the
>NRPE on
> > > > >your Windows host.
> > > > >There should be a README or INSTALL file how this is done
> > >under
> > > > >Windows.
> > > > >It should also explain how the nrpe daemon can be started
>as a
> > > > >Windows service.
> > > > >
> > > > >On the Windows box you need to define a command in
>nrpe.cfg
> > >that
> > > > >is the same as how you would run your shutdown script.
> > > > >
> > > > >Then you have to start the nrpe service on the Windows
>box.
> > > > >
> > > > >In the nrpe binaries for Windows should also be a
>check_nrpe
> > > > >executable.
> > > > >You can use this to test if your command gets executed by
>nrpe
> > > > >service on the Windows localhost.
> > > > >Of course for this test I would modify the shutdown script
>so
> > > > >that it wouldn't really shutdown
> > > > >but only display for instance what it would be doing.
> > > > >As -H you have to give the localhost IP because you're
>running
> > > > >this on the same box.
> > > > >As -c you have to pass the name of your command you
>defined in
> > > > >nrpe.cfg above.
> > > > >
> > > > >Then you must build or get the binary for Linux of
>check_nrpe,
> > > > >and install it in the libexec directory of your Linux
>Nagios
> > > > >server.
> > > > >You should now be able run check_nrpe -H
>IP_of_Windows_Host -c
> > > > >Shutdown_Command
> > > > >much the same like you have done on the Windows host.
> > > > >This time you only have to specify the IP of the Windows
>host
> > > > >instead of localhost or 127.0.0.1
> > > > >
> > > > >If that test also worked you can define a check_command
>and a
> > > > >service in your nagios config files,
> > > > >and restart the nagios server.
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com]
> > > > > > Sent: Thursday, August 04, 2005 7:07 PM
> > > > > > To: Ralph.Grothe at itdz-berlin.de
> > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How
>to
> > > > > > interpret CRC32
> > > > > > errors?
> > > > > >
> > > > > >
> > > > > > Here's my sample test.pl file:
> > > > > >
> > > > > > #!/usr/bin/perl
> > > > > >
> > > > > > use strict;
> > > > > > use Win32;
> > > > > >
> > > > > > Win32::InitiateSystemShutdown("<machines ip>", "BYE",
>1, 1,
> > >1);
> > > > > >
> > > > > >
> > > > > > I copied the Win32.pm to a location that the system
>could
> > > > > > seee....however i
> > > > > > now get the following error message:
> > > > > >
> > > > > > Undefined subroutine &Win32::InitiateSystemShutdown
>called
> > >at
> > > > > > ./test.pl line
> > > > > > 6.
> > > > > >
> > > > > > any ideas???
> > > > > >
> > > > > >
> > > > > > >From: Ralph.Grothe at itdz-berlin.de
> > > > > > >To: getbacktome3 at hotmail.com
> > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How
>to
> > > > > > interpret CRC32
> > > > > > >errors?
> > > > > > >Date: Thu, 4 Aug 2005 18:48:16 +0200
> > > > > > >
> > > > > > >Hi Geeza,
> > > > > > >
> > > > > > >do you mean your question regarding the remote
>shutdown of
> > > > > > >Windows boxes?
> > > > > > >
> > > > > > >I'm sure that this can be accomplished.
> > > > > > >
> > > > > > >However, I'm absolutely not into Windows.
> > > > > > >
> > > > > > >If you could wait until tomorrow, or haven't received
>a
> > >hack
> > > > >from
> > > > > > >someone else by then,
> > > > > > >I could ask our Windows admin what is required on a
> > >Windows
> > > > >host
> > > > > > >to do this.
> > > > > > >
> > > > > > >I would guess only some tampering with some registry
>key
> > >or
> > > > >so.
> > > > > > >
> > > > > > >I also don't know the Microsoft interpreters like
>Windows
> > > > > > >Scripting Host or even the .Net framework.
> > > > > > >Anyone familiar with those can quickly script
>something
> > >that
> > > > >will
> > > > > > >do what you need.
> > > > > > >
> > > > > > >I only script in Perl and Unix shells.
> > > > > > >
> > > > > > >But you can as well install Perl on a Windows box, and
>do
> > >all
> > > > > > >sorts of sysadmin tasks through Perl.
> > > > > > >They have special modules that give you access to the
> > >Registry
> > > > > > >and other Windows typical interfaces.
> > > > > > >
> > > > > > >
> > > > > > >Sorry, for not being of more help
> > > > > > >
> > > > > > >Ralph
> > > > > > >
> > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com]
> > > > > > > > Sent: Thursday, August 04, 2005 6:40 PM
> > > > > > > > To: Ralph.Grothe at itdz-berlin.de
> > > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help]
>How
> > >to
> > > > > > > > interpret CRC32
> > > > > > > > errors?
> > > > > > > >
> > > > > > > >
> > > > > > > > Hi Ralph,
> > > > > > > >
> > > > > > > > I have just posted an NRPE related
>questoin....could
> > >you
> > > > > > > > please help???
> > > > > > > >
> > > > > > > > >From: Ralph.Grothe at itdz-berlin.de
> > > > > > > > >To: nagios-users at lists.sourceforge.net
> > > > > > > > >CC: cshaffer at gmail.com
> > > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help]
>How
> > >to
> > > > > > > > interpret CRC32
> > > > > > > > >errors?
> > > > > > > > >Date: Thu, 4 Aug 2005 18:31:29 +0200
> > > > > > > > >
> > > > > > > > >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.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >Happy NRPEing
> > > > > > > > >
> > > > > > > > >Ralph
> > > > > > > > >
> > > > > > > > > > -----Original Message-----
> > > > > > > > > > From: nagios-users-admin at lists.sourceforge.net
> > > > > > > > > >
>[mailto:nagios-users-admin at lists.sourceforge.net]On
> > > > >Behalf
> > > > > > >Of
> > > > > > > > > > Ralph.Grothe at itdz-berlin.de
> > > > > > > > > > Sent: Thursday, August 04, 2005 5:37 PM
> > > > > > > > > > To: ae at op5.se
> > > > > > > > > > Cc: nagios-users at lists.sourceforge.net
> > > > > > > > > > Subject: [Nagios-users] RE: [Nagiosplug-help]
>How
> > >to
> > > > > > >interpret
> > > > > > > > >CRC32
> > > > > > > > > > errors?
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > 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.
> > > > > > > > > >
> > > > > > > > > > Did I know more about Nagios I would happily
>pay
> > >back
> > > > >by
> > > > > > > > > > answering others' questions.
> > > > > > > > > >
> > > > > > > > > > I had the impression that the developpers had
>left
> > >the
> > > > > > > > > > documentation sketchy in favour of directing
>people
> > >to
> > > > >the
> > > > > > > > > > nagios-users mailing list (at least that's what
> > >every
> > > > > > >plug-in's
> > > > > > > > > > help screen suggests)
> > > > > > > > > > I know what an unpleasant duty it is for
>developers
> > >to
> > > > > > > > >document.
> > > > > > > > > >
> > > > > > > > > > To someone so much and probably long time
>involved
> > >in
> > > > >the
> > > > > > > > >Nagios
> > > > > > > > > > project as you
> > > > > > > > > > (only assuming this as I don't know your
>background
> > >or
> > > > >role
> > > > > > > > >here)
> > > > > > > > > > my questions may seem like brain farts.
> > > > > > > > > >
> > > > > > > > > > I only wonder why, if you are so pissed off by
> > >them,
> > > > >simply
> > > > > > > > >don't
> > > > > > > > > > ignore them.
> > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > On a sidenote, it's considered very rude to
> > > > >cross-post
> > > > > > >unless
> > > > > > > > > > you're
> > > > > > > > > > > making an announcement of some sort, so
>please
> > > > >refrain
> > > > > > >from
> > > > > > > > > > > doing so in
> > > > > > > > > > > the future.
> > > > > > > > > >
> > > > > > > > > > I didn't know I was cross posting.
> > > > > > > > > > I didn't regard sending my questions to
> > >nagios-users
> > > > >and
> > > > > > > > > > nagiosplug-help simultaniously
> > > > > > > > > > as real cross postings.
> > > > > > > > > > I didn't post in other 10 lists or so, and I
>didn't
> > > > >spam or
> > > > > > > > >post
> > > > > > > > > > off-topic announcements, nor insult someone
>here.
> > > > > > > > > >
> > > > > > > > > > If the mailing list moderators opened this list
>to
> > >the
> > > > > > >public
> > > > > > > > >of
> > > > > > > > > > all kinds of Nagios users
> > > > > > > > > > list subscribers have to live with dumb
>questions
> > >of
> > > > >Nagios
> > > > > > > > > > newbies like me.
> > > > > > > > > >
> > > > > > > > > > Having learned that I breached the list
>netiquette
> > >I
> > > > >will
> > > > > > >only
> > > > > > > > > > post to one list in the future.
> > > > > > > > > >
> > > > > > > > > > > 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)
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > [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
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > >-------------------------------------------------------
> > > > > > > > > > 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
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > >-------------------------------------------------------
> > > > > > > > >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
> > > > > > >
> > > > > >
> > > > >
> > >
> >________________________________________________________________
> > > > >_
> > > > > > >Be the first to hear what's new at MSN - sign up to
>our
> > >free
> > > > > > >newsletters!
> > > > > > >http://www.msn.co.uk/newsletters
> > > > > >
> > > > > >
> > > >
> > >
> >________________________________________________________________
> > >_
> > > > > > Winks & nudges are here - download MSN Messenger 7.0
>today!
> > > > > > http://messenger.msn.co.uk
> > > > > >
> > > >
> > > >
> >
> >________________________________________________________________
>_
> > > > Be the first to hear what's new at MSN - sign up to our
>free
> > > > newsletters!
> > > > http://www.msn.co.uk/newsletters
> > > >
> >
> >
>_________________________________________________________________
> > Be the first to hear what's new at MSN - sign up to our free
> > newsletters!
> > http://www.msn.co.uk/newsletters
> >

_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters! 
http://www.msn.co.uk/newsletters



-------------------------------------------------------
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