Page 1 of 1

check_ping version 2.2.1 Plugin Timeout

Posted: Thu Sep 27, 2018 5:38 am
by jpbu
Hi,

we recently upgraded our nagios-plugins from version 1.5 to version 2.2.1 and we noticed some difference on check_ping plugin when host is down

on version 1.5
check_ping -H 'ipaddress' -w 3000.0,80% -c 5000.0,100% -p 5 -t 10

PING CRITICAL - Packet loss = 100%|rta=5000.000000ms;3000.000000;5000.000000;0.000000 pl=100%;80;100;0

on version 2.2,1
check_ping -H 'ipaddress' -w 3000.0,80% -c 5000.0,100% -p 5 -t 10

CRITICAL - Plugin timed out

Any comments on this issue?

Thanks!

Re: check_ping version 2.2.1 Plugin Timeout

Posted: Thu Sep 27, 2018 2:26 pm
by scottwilkerson
This actually is fixing an issue with the previous version.

If you are sending 5 packets and waiting several seconds for each packet, a timeout of 10 should exit BEFORE it can continue to check all 5 times, which is what it is doing.