[Nagiosplug-checkins] nagiosplug/plugins check_dns.c,1.44,1.45
Matthew Kent
mattkent at users.sourceforge.net
Mon Dec 20 21:01:05 CET 2004
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28325
Modified Files:
check_dns.c
Log Message:
Add another error string match from Pasi Tiittanen
Index: check_dns.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dns.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- check_dns.c 10 Dec 2004 05:57:33 -0000 1.44
+++ check_dns.c 21 Dec 2004 05:00:46 -0000 1.45
@@ -239,6 +239,7 @@
/* 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 @@
/* 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 */
More information about the Commits
mailing list