diff options
author | Matthew Kent <mattkent@users.sourceforge.net> | 2004-12-21 05:00:46 +0000 |
---|---|---|
committer | Matthew Kent <mattkent@users.sourceforge.net> | 2004-12-21 05:00:46 +0000 |
commit | 3438df79d1fbf7d929467855ffe7b9f1c181c09e (patch) | |
tree | 9aa53fb9bb66193bfb97c307d79089286a219d75 /plugins/check_dns.c | |
parent | 776c57ae6091558f95318206f86ab39e99489c61 (diff) | |
download | monitoring-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.c | 3 |
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) | |||
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 */ |