[Nagiosplug-help] check_icmp oddness

Thomas Guyot-Sionnest dermoth at aei.ca
Thu Apr 3 09:16:08 CEST 2008

Hash: SHA1

On 28/03/08 06:33 PM, Israel Brewster wrote:
> I am having some difficulty using the check_icmp plugin to monitor a  
> number of my hosts, specifically Linksys RV082 routers running the  
> latest firmware. What's happening is if I have a command line such as:
> ./check_icmp -n 2 -m 1 -w 3000,80% -c 5000,100% xx.xxx.xxx.111  
> xx.xxx.xxx.33
> (or the equivalent from the nagios configs) it works (I have a dual- 
> WAN configuration on the router, both IP's are for the same device).  
> However, if I change the -n argument to 3, I get 33% packet loss.  
> Changing the -n argument to 4 gives 50% packet loss, etc. This is  
> consistent and reproducible-only the first two packets ever get  
> through. check_ping, however, works perfectly, even if I tell it to  
> send something like 10 packets, as does an ongoing ping directly from  
> the command line.

This probably has to do with the ICMP sequence number not being uptated.
It's on my TODO list to get this fixed and I'll try not to miss it for
the next release...

You can try the patch below, but...

1. It's not from a Nagiosplug developer - I have not tested or even
reviewed it!
2. It wasn't sent as plain text. You might need to apply it by hands,
although it should probably work with the the -l switch
3. It's against 1.4.8 but might work on newer releases...


Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_icmp.seq_number.untested.patch
Type: text/x-diff
Size: 2555 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20080403/bf260d7e/attachment.patch>

More information about the Help mailing list