[Nagiosplug-help] check_icmp seems flapping - followon to RE: make of nagios-plugins-1.4.5 on AIX 4.3 fails

Ralph.Grothe at itdz-berlin.de Ralph.Grothe at itdz-berlin.de
Thu Nov 30 15:34:30 CET 2006


> -----Original Message-----
> From: Andreas Ericsson [mailto:ae at op5.se]
> Sent: Thursday, November 30, 2006 2:01 PM
> To: Grothe, Ralph
> Cc: nagiosplug-help at lists.sourceforge.net
> Subject: Re: [Nagiosplug-help] check_icmp seems flapping -
followon to
> RE: make of nagios-plugins-1.4.5 on AIX 4.3 fails
> 
> 
> Ralph.Grothe at itdz-berlin.de wrote:
> > I am still seem to have some serious trouble with my build of
the
> > check_icmp plugin.
> > 
> > 
> > Now I am curiuous whether my compilation of check_icmp is ok?
> > 
> 
> You'd get this problem if you use an old check_icmp on a system
that 
> handles process id's > 65535. In the old version, check_icmp
didn't 
> recognize valid ICMP responses because the id-field used in the
icmp 
> header is only 16 bits wide, so a 32-bit pid doesn't fit in it.
This 
> would typically only happen when the pid of check_icmp is
larger than 
> 65535, which would explain the checks hopping between OK for 
> a while and 
> non-OK for a while. Judging by "mode: 1" above, I'd say your 
> check_icmp 
> is fairly old and needs to be upgraded. What version of the 
> plugins are 
> you using?

Oh, I thought I downloaded the latest nagios-plugins tarball
(viz. 1.4.5),
of which I guess check_icmp is part of.
Wait, there should be a revision header in the sources,
or maybe check_icmp is revealing its age?

$ /opt/sw/nagios/libexec/check_icmp -V

no it's dumb as a grave

$ /opt/sw/nagios/libexec/check_icmp --version
/opt/sw/nagios/libexec/check_icmp: illegal option -- -
/opt/sw/nagios/libexec/check_icmp: illegal option -- e
/opt/sw/nagios/libexec/check_icmp: illegal option -- r
/opt/sw/nagios/libexec/check_icmp: illegal option -- s
check_icmp: No hosts to check


Oops, it isn't behaving according to its own help screen.
But you are the author, then you should know better ;-)

$ /opt/sw/nagios/libexec/check_icmp -h|head -15
Copyright (c) 2005 Andreas Ericsson <ae at op5.se>
Copyright (c) 2005-2006 Nagios Plugin Development Team
        <nagiosplug-devel at lists.sourceforge.net>



Usage: check_icmp [options] [-H] host1 host2 hostn

Options:
 -h, --help
    Print detailed help screen
 -V, --version
    Print version information
 -H
    specify a target


Luckily we've got the source


$ grep -i \$ID
/opt/sw/nagios/build/nagios-plugins-1.4.5/plugins-root/check_icmp
.c 
* $Id: check_icmp.c,v 1.8 2006/10/24 21:54:06 opensides Exp $


So is this recent enough?








More information about the Help mailing list