summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Wagner <waja@cyconet.org>2012-04-17 09:46:16 (GMT)
committerJan Wagner <waja@cyconet.org>2012-04-17 09:46:16 (GMT)
commitc69890a4b4e3b303ae82cc7eec773486e08c80bb (patch)
treec5f580d5a86d10f5fed277b5b1429e4555a3aff6
parent4c30935850997f513b3eee21d169f6d523d43c5d (diff)
downloadmonitoring-plugins-c69890a4b4e3b303ae82cc7eec773486e08c80bb.tar.gz
Fix check_ping where output of ping6 when unreachable (Debian #662638)refs/pull/2/head
-rw-r--r--NEWS3
-rw-r--r--plugins/check_ping.c2
2 files changed, 4 insertions, 1 deletions
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.
14 14
15 FIXES 15 FIXES
16 Fix check_disk free space calculation if blocksizes differ within a disk group (Bekar - #2973603) 16 Fix check_disk free space calculation if blocksizes differ within a disk group (Bekar - #2973603)
17 check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696) 17 check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696)
18 Make check_snmp work more like v1.4.14 with regard to using special values (Timeticks, STRING) as numeric thresholds 18 Make check_snmp work more like v1.4.14 with regard to using special values (Timeticks, STRING) as numeric thresholds
19 Fix check_ldap overriding the port when --ssl was specified after -p 19 Fix check_ldap overriding the port when --ssl was specified after -p
20 Fix check_procs where regex input of '|' would get displayed in output - now replaced with ',' 20 Fix check_procs where regex input of '|' would get displayed in output - now replaced with ','
21 Fix segfault in check_host when hostname returns multiple IP addresses (Sebastian Harl) 21 Fix segfault in check_host when hostname returns multiple IP addresses (Sebastian Harl)
22 Fix check_smtp and check_tcp where duplicate messages were displayed for certificate errors 22 Fix check_smtp and check_tcp where duplicate messages were displayed for certificate errors
23 Fix check_ping where output of ping6 when unreachable (Debian #662638)
23 24
241.4.15 27th July 2010 251.4.15 27th July 2010
25 ENHANCEMENTS 26 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)
533 die (STATE_CRITICAL, _("CRITICAL - Host not found (%s)"), addr); 533 die (STATE_CRITICAL, _("CRITICAL - Host not found (%s)"), addr);
534 else if (strstr (buf, "Time to live exceeded")) 534 else if (strstr (buf, "Time to live exceeded"))
535 die (STATE_CRITICAL, _("CRITICAL - Time to live exceeded (%s)"), addr); 535 die (STATE_CRITICAL, _("CRITICAL - Time to live exceeded (%s)"), addr);
536 else if (strstr (buf, "Destination unreachable: "))
537 die (STATE_CRITICAL, _("CRITICAL - DestinationUnreachable (%s)"), addr);
536 538
537 if (strstr (buf, "(DUP!)") || strstr (buf, "DUPLICATES FOUND")) { 539 if (strstr (buf, "(DUP!)") || strstr (buf, "DUPLICATES FOUND")) {
538 if (warn_text == NULL) 540 if (warn_text == NULL)