diff options
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 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 */ |