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) --- plugins/check_ping.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') 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) 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 v1.2.3-74-g34f1