Przeglądaj źródła

Fix check_ping where output of ping6 when unreachable (Debian #662638)

Jan Wagner 14 lat temu
rodzic
commit
c69890a4b4
2 zmienionych plików z 4 dodań i 1 usunięć
  1. 2 1
      NEWS
  2. 2 0
      plugins/check_ping.c

+ 2 - 1
NEWS

@@ -14,12 +14,13 @@ This file documents the major additions and syntax changes between releases.
 
 	FIXES
 	Fix check_disk free space calculation if blocksizes differ within a disk group (Bekar - #2973603)
-	check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696) 
+	check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696)
 	Make check_snmp work more like v1.4.14 with regard to using special values (Timeticks, STRING) as numeric thresholds
 	Fix check_ldap overriding the port when --ssl was specified after -p
 	Fix check_procs where regex input of '|' would get displayed in output - now replaced with ','
 	Fix segfault in check_host when hostname returns multiple IP addresses (Sebastian Harl)
 	Fix check_smtp and check_tcp where duplicate messages were displayed for certificate errors
+	Fix check_ping where output of ping6 when unreachable (Debian #662638)
 
 1.4.15 27th July 2010
 	ENHANCEMENTS

+ 2 - 0
plugins/check_ping.c

@@ -533,6 +533,8 @@ error_scan (char buf[MAX_INPUT_BUFFER], const char *addr)
 		die (STATE_CRITICAL, _("CRITICAL - Host not found (%s)"), addr);
 	else if (strstr (buf, "Time to live exceeded"))
 		die (STATE_CRITICAL, _("CRITICAL - Time to live exceeded (%s)"), addr);
+	else if (strstr (buf, "Destination unreachable: "))
+		die (STATE_CRITICAL, _("CRITICAL - DestinationUnreachable (%s)"), addr);
 
 	if (strstr (buf, "(DUP!)") || strstr (buf, "DUPLICATES FOUND")) {
 		if (warn_text == NULL)