check_ping fails to parse output of ping6 due to two bugs fixed in 1.4.16
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nagios-plugins (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
# lsb_release -rd
Description: Ubuntu 12.04.4 LTS
Release: 12.04
nagios-
Installed: 1.4.15-5ubuntu3.2
check_ping -6 fails to parse output from ping6 to unreachable hosts in two ways, both fixed in 1.4.16
Relevant Debian and upstreams bugs are:
https:/
http://
and
https:/
Output from 1.4.15-5ubuntu3.2:
# /usr/lib/
CMD: /bin/ping6 -n -U -w 10 -c 1 2001:6b0:
Output: PING 2001:6b0:
Output: From 2001:6b0:
Output: From 2001:6b0:
Output: From 2001:6b0:
Output:
Output: --- 2001:6b0:
Output: 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
Output:
/bin/ping6 -n -U -w 10 -c 1 2001:6b0:
CRITICAL - Could not interpret output from ping command
Output of same version, but fix from debian bug 514588 applied:
# ./check_ping_514588 -H 2001:6b0:
CMD: /bin/ping6 -n -U -w 10 -c 1 2001:6b0:
Output: PING 2001:6b0:
Output: From 2001:6b0:
Output: From 2001:6b0:
Output: From 2001:6b0:
Output:
Output: --- 2001:6b0:
Output: 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
Output:
PING CRITICAL - Packet loss = 100%|rta=
5000.000000:100% 5000.000000:100%
Finally, with fixes from both 514588 and 662638:
# ./check_ping -H 2001:6b0:
CMD: /bin/ping6 -n -U -w 10 -c 1 2001:6b0:
Output: PING 2001:6b0:
Output: From 2001:6b0:
CRITICAL - Destination Unreachable (2001:6b0:
Status changed to 'Confirmed' because the bug affects multiple users.