aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
authorGravatar Matthew Kent <mattkent@users.sourceforge.net> 2004-12-21 05:00:46 +0000
committerGravatar Matthew Kent <mattkent@users.sourceforge.net> 2004-12-21 05:00:46 +0000
commit3438df79d1fbf7d929467855ffe7b9f1c181c09e (patch)
tree9aa53fb9bb66193bfb97c307d79089286a219d75 /plugins/check_dns.c
parent776c57ae6091558f95318206f86ab39e99489c61 (diff)
downloadmonitoring-plugins-3438df79d1fbf7d929467855ffe7b9f1c181c09e.tar.gz
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
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r--plugins/check_dns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index b0ab23ca..20cb6dd8 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 */