check_ping fails to parse output of ping6 due to two bugs fixed in 1.4.16

Bug #1282029 reported by Tomas Forsman
16
This bug affects 3 people
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-plugins-basic:
  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://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514588
http://sourceforge.net/p/nagiosplug/bugs/392/
and
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662638

Output from 1.4.15-5ubuntu3.2:
# /usr/lib/nagios/plugins/check_ping -H 2001:6b0:e:2018::9999 -w 5000,100% -c 5000,100% -p 1 -v -v -v -6
CMD: /bin/ping6 -n -U -w 10 -c 1 2001:6b0:e:2018::9999
Output: PING 2001:6b0:e:2018::9999(2001:6b0:e:2018::9999) 56 data bytes
Output: From 2001:6b0:e:2018::xxx icmp_seq=1 Destination unreachable: Address unreachable
Output: From 2001:6b0:e:2018::xxx icmp_seq=2 Destination unreachable: Address unreachable
Output: From 2001:6b0:e:2018::xxx icmp_seq=3 Destination unreachable: Address unreachable
Output:
Output: --- 2001:6b0:e:2018::9999 ping statistics ---
Output: 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
Output:
/bin/ping6 -n -U -w 10 -c 1 2001:6b0:e:2018::9999
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:e:2018::9999 -w 5000,100% -c 5000,100% -p 1 -v -v -v -6
CMD: /bin/ping6 -n -U -w 10 -c 1 2001:6b0:e:2018::9999
Output: PING 2001:6b0:e:2018::9999(2001:6b0:e:2018::9999) 56 data bytes
Output: From 2001:6b0:e:2018::xxx icmp_seq=1 Destination unreachable: Address unreachable
Output: From 2001:6b0:e:2018::xxx icmp_seq=2 Destination unreachable: Address unreachable
Output: From 2001:6b0:e:2018::xxx icmp_seq=3 Destination unreachable: Address unreachable
Output:
Output: --- 2001:6b0:e:2018::9999 ping statistics ---
Output: 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
Output:
PING CRITICAL - Packet loss = 100%|rta=5000.000000ms;5000.000000;5000.000000;0.000000 pl=100%;100;100;0
5000.000000:100% 5000.000000:100%

Finally, with fixes from both 514588 and 662638:
# ./check_ping -H 2001:6b0:e:2018::9999 -w 5000,100% -c 5000,100% -p 1 -v -v -v -6
CMD: /bin/ping6 -n -U -w 10 -c 1 2001:6b0:e:2018::9999
Output: PING 2001:6b0:e:2018::9999(2001:6b0:e:2018::9999) 56 data bytes
Output: From 2001:6b0:e:2018::xxx icmp_seq=1 Destination unreachable: Address unreachable
CRITICAL - Destination Unreachable (2001:6b0:e:2018::9999)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nagios-plugins (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.