[Nagiosplug-help] Question about check_icmp operation

Horvath Tamas zsitfa at axelero.hu
Sat Mar 19 06:07:03 CET 2005


Hi!


I use check_icmp according to the following way:
/usr/local/nagios/libexec/check_icmp -H host1 host2 ...host20 -c 10s,100% -b
56 -n 10 -t 20 -i 160 -I 10

Question 1:

I'm interested in how this plugin works.

Tip1: it pings host1 (send 10 ICMP echo packets to it), than ping host2 and
so on.

Tip2: it sends the 1st ICMP echo packet to host1, than host2 and finally
host20. After that it sends 2nd ICM echo packet to host1, than host2, etc.

Which one is correct?

Question 2:

How can I interpret the timeout function?

Tip1: it related to ICMP echo packets, so if I send 10 of them to a non
alive host, than the total run time would be 200s.

Tip2: it related to a host, so the program run time would be approxiately
number_of_nonalive_hosts x 20 s + some additional time.

Which one is correct?

Sorry about my dumb questions, but these are important in my scenario: I
check ISDN lines (which are backup of leased lines) and it takes some time,
while an ISDN interface come up and replies (the first X echo packets are
dropped).

Some data about my system:

Linux antsz1 2.4.23 #1 SMP Thu Jan 15 17:32:38 CET 2004 i686 unknown

$Id: check_icmp.c,v 1.5 2005/02/01 07:33:13 stanleyhopcroft Exp $

Nagios-plugins 1.4


Tanks in advance your reply!

Bye, Tamas!





More information about the Help mailing list