[Nagiosplug-help] How to implement host checks with broken check_icmp and check_ping?

Ralph Grothe ralph.grothe at itdz-berlin.de
Thu Nov 30 14:51:01 CET 2006


Sascha Runschke <srunschke at ...> writes:

> 
> nagiosplug-help-bounces at ... schrieb am
> 30.11.2006 
> 12:30:45:
> 
> > $ /opt/sw/nagios/libexec/check_icmp -H 127.0.01 -w 1000.0,50% -c
> > 10000.0,80% -p 3
> > CRITICAL - 127.0.01: rta nan, lost
> > 100%|rta=0.000ms;1000.000;10000.000;0; pl=100%;50;80;; 
> 
> [...snipped...]
> 
> > So it would be nice if I got check_icmp to work reliably.
> > What do I have to look after in the Makefile(s) to get check_ping
> > and check_icmp built correctly?
> 
> First of all I would suggest checking your configs for typos,
> like the one you made here. I wouldn't expect that "127.0.01"
> would be pingable - it's not even an IP...

Sorry, that was a bad typo indeed.
Anyway, my problem persists nevertheless
since check_icmp at times is catching
all emitted packets and at other (unpredictable) times it isn't.
Interestingly, check_icmp seems to be written tolerant enough 
to catch this typo.
What about this result?
(I swear no constructed pasting on my behalf here)

$ /opt/sw/nagios/libexec/check_icmp -H 127.0.01
OK - 127.0.01: rta 0.201ms, lost 0%|\
rta=0.201ms;200.000;500.000;0; pl=0%;40;80;;

While only a couple of mins later this is happening
(this time I used the correct loopback address)

$ check_icmp -H 127.0.0.1 -p 3 -w 1000.0,40% -c 10000.0,75%
CRITICAL - 127.0.0.1: rta nan, lost 100%|\
rta=0.000ms;1000.000;10000.000;0;pl=100%;40;75;;


So what is going on here?

Is there a debug toggle switch (maybe in check_icmp's sources)
to get a bigger picture, or would one call it through strace, tusc
etc.?

> 
> If that doesn't help, a little more information regarding your
> setup would be appreciated - OS, system, build, configs...

Sure, I have redirected stdout and stderr of both
configure and make into log files.
But they are quite long...


> 
> regards
>         Sascha
> 
> --
> Sascha Runschke
> Netzwerk Management
> IT-Services
> 
> ABIT AG
> Robert-Bosch-Str. 1
> 40668 Meerbusch
> 
> Tel.:+49 (0) 2150.9153.226
> Mobil:+49 (0) 173.5419665
> mailto:SRunschke at ...
> 
> http://www.abit.net
> http://www.abit-epos.net
> ---------------------------------
> Sicherheitshinweis zur E-Mail Kommunikation /
>   Security note regarding email communication:
> http://www.abit.net/sicherheitshinweis.html
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at ...
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 
> 








More information about the Help mailing list