check_ping version 2.2.1 Plugin Timeout

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jpbu
Posts: 1
Joined: Fri Feb 27, 2015 2:57 am

check_ping version 2.2.1 Plugin Timeout

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_ping version 2.2.1 Plugin Timeout

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked