Public bug reported:

# 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)

** Affects: nagios-plugins (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nagios-plugins in Ubuntu.
https://bugs.launchpad.net/bugs/1282029

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios-plugins/+bug/1282029/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to