From c69890a4b4e3b303ae82cc7eec773486e08c80bb Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Tue, 17 Apr 2012 11:46:16 +0200 Subject: Fix check_ping where output of ping6 when unreachable (Debian #662638) diff --git a/NEWS b/NEWS index ef6548a..1234178 100644 --- a/NEWS +++ b/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 diff --git a/plugins/check_ping.c b/plugins/check_ping.c index ecdd618..9f9dcab 100644 --- a/plugins/check_ping.c +++ b/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) -- cgit v0.10-9-g596f