From: Matthew Kent Date: Tue, 21 Dec 2004 05:00:46 +0000 (+0000) Subject: Add another error string match from Pasi Tiittanen X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3438df79d1fbf7d929467855ffe7b9f1c181c09e;p=nagiosplug.git Add another error string match from Pasi Tiittanen git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1044 f882894a-f735-0410-b71e-b25c423dba1c --- diff --git a/plugins/check_dns.c b/plugins/check_dns.c index b0ab23c..20cb6dd 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c @@ -239,6 +239,7 @@ error_scan (char *input_buffer) /* Connection was refused */ else if (strstr (input_buffer, "Connection refused") || + strstr (input_buffer, "Couldn't find server") || strstr (input_buffer, "Refused") || (strstr (input_buffer, "** server can't find") && strstr (input_buffer, ": REFUSED"))) @@ -255,7 +256,7 @@ error_scan (char *input_buffer) /* Host or domain name does not exist */ else if (strstr (input_buffer, "Non-existent") || strstr (input_buffer, "** server can't find") || - strstr (input_buffer,"NXDOMAIN")) + strstr (input_buffer,"NXDOMAIN")) die (STATE_CRITICAL, _("Domain %s was not found by the server\n"), query_address); /* Network is unreachable */