summaryrefslogtreecommitdiffstats
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r--plugins/check_dns.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index d7546106..6121af02 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -263,49 +263,49 @@ error_scan (char *input_buffer)
263{ 263{
264 264
265 /* the DNS lookup timed out */ 265 /* the DNS lookup timed out */
266 if (strstr (input_buffer, _("Note: nslookup is deprecated and may be removed from future releases.")) || 266 if (strstr (input_buffer, "Note: nslookup is deprecated and may be removed from future releases.") ||
267 strstr (input_buffer, _("Consider using the `dig' or `host' programs instead. Run nslookup with")) || 267 strstr (input_buffer, "Consider using the `dig' or `host' programs instead. Run nslookup with") ||
268 strstr (input_buffer, _("the `-sil[ent]' option to prevent this message from appearing."))) 268 strstr (input_buffer, "the `-sil[ent]' option to prevent this message from appearing."))
269 return STATE_OK; 269 return STATE_OK;
270 270
271 /* the DNS lookup timed out */ 271 /* the DNS lookup timed out */
272 else if (strstr (input_buffer, _("Timed out"))) 272 else if (strstr (input_buffer, "Timed out"))
273 return STATE_WARNING; 273 return STATE_WARNING;
274 274
275 /* DNS server is not running... */ 275 /* DNS server is not running... */
276 else if (strstr (input_buffer, _("No response from server"))) 276 else if (strstr (input_buffer, "No response from server"))
277 return STATE_CRITICAL; 277 return STATE_CRITICAL;
278 278
279 /* Host name is valid, but server doesn't have records... */ 279 /* Host name is valid, but server doesn't have records... */
280 else if (strstr (input_buffer, _("No records"))) 280 else if (strstr (input_buffer, "No records"))
281 return STATE_WARNING; 281 return STATE_WARNING;
282 282
283 /* Host or domain name does not exist */ 283 /* Host or domain name does not exist */
284 else if (strstr (input_buffer, _("Non-existent"))) 284 else if (strstr (input_buffer, "Non-existent"))
285 return STATE_CRITICAL; 285 return STATE_CRITICAL;
286 else if (strstr (input_buffer, _("** server can't find"))) 286 else if (strstr (input_buffer, "** server can't find"))
287 return STATE_CRITICAL; 287 return STATE_CRITICAL;
288 else if(strstr(input_buffer,"NXDOMAIN")) /* 9.x */ 288 else if(strstr(input_buffer,"NXDOMAIN")) /* 9.x */
289 return STATE_CRITICAL; 289 return STATE_CRITICAL;
290 290
291 /* Connection was refused */ 291 /* Connection was refused */
292 else if (strstr (input_buffer, _("Connection refused"))) 292 else if (strstr (input_buffer, "Connection refused"))
293 return STATE_CRITICAL; 293 return STATE_CRITICAL;
294 294
295 /* Network is unreachable */ 295 /* Network is unreachable */
296 else if (strstr (input_buffer, _("Network is unreachable"))) 296 else if (strstr (input_buffer, "Network is unreachable"))
297 return STATE_CRITICAL; 297 return STATE_CRITICAL;
298 298
299 /* Internal server failure */ 299 /* Internal server failure */
300 else if (strstr (input_buffer, _("Server failure"))) 300 else if (strstr (input_buffer, "Server failure"))
301 return STATE_CRITICAL; 301 return STATE_CRITICAL;
302 302
303 /* DNS server refused to service request */ 303 /* DNS server refused to service request */
304 else if (strstr (input_buffer, _("Refused"))) 304 else if (strstr (input_buffer, "Refused"))
305 return STATE_CRITICAL; 305 return STATE_CRITICAL;
306 306
307 /* Request error */ 307 /* Request error */
308 else if (strstr (input_buffer, _("Format error"))) 308 else if (strstr (input_buffer, "Format error"))
309 return STATE_WARNING; 309 return STATE_WARNING;
310 310
311 else 311 else