summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Kent <mattkent@users.sourceforge.net>2004-12-21 05:00:46 (GMT)
committerMatthew Kent <mattkent@users.sourceforge.net>2004-12-21 05:00:46 (GMT)
commit3438df79d1fbf7d929467855ffe7b9f1c181c09e (patch)
tree9aa53fb9bb66193bfb97c307d79089286a219d75 /plugins
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')
-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 b0ab23c..20cb6dd 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -239,6 +239,7 @@ error_scan (char *input_buffer)
239 239
240 /* Connection was refused */ 240 /* Connection was refused */
241 else if (strstr (input_buffer, "Connection refused") || 241 else if (strstr (input_buffer, "Connection refused") ||
242 strstr (input_buffer, "Couldn't find server") ||
242 strstr (input_buffer, "Refused") || 243 strstr (input_buffer, "Refused") ||
243 (strstr (input_buffer, "** server can't find") && 244 (strstr (input_buffer, "** server can't find") &&
244 strstr (input_buffer, ": REFUSED"))) 245 strstr (input_buffer, ": REFUSED")))
@@ -255,7 +256,7 @@ error_scan (char *input_buffer)
255 /* Host or domain name does not exist */ 256 /* Host or domain name does not exist */
256 else if (strstr (input_buffer, "Non-existent") || 257 else if (strstr (input_buffer, "Non-existent") ||
257 strstr (input_buffer, "** server can't find") || 258 strstr (input_buffer, "** server can't find") ||
258 strstr (input_buffer,"NXDOMAIN")) 259 strstr (input_buffer,"NXDOMAIN"))
259 die (STATE_CRITICAL, _("Domain %s was not found by the server\n"), query_address); 260 die (STATE_CRITICAL, _("Domain %s was not found by the server\n"), query_address);
260 261
261 /* Network is unreachable */ 262 /* Network is unreachable */