diff options
author | Jan Wagner <waja@cyconet.org> | 2012-04-17 11:46:16 +0200 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2012-04-17 11:46:16 +0200 |
commit | c69890a4b4e3b303ae82cc7eec773486e08c80bb (patch) | |
tree | c5f580d5a86d10f5fed277b5b1429e4555a3aff6 /plugins/check_ping.c | |
parent | 4c30935850997f513b3eee21d169f6d523d43c5d (diff) | |
download | monitoring-plugins-c69890a4b4e3b303ae82cc7eec773486e08c80bb.tar.gz |
Fix check_ping where output of ping6 when unreachable (Debian #662638)
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r-- | plugins/check_ping.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index ecdd6183..9f9dcabd 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) |