summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0b9ca89)
raw | patch | inline | side by side (parent: 0b9ca89)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Fri, 1 Aug 2003 06:03:36 +0000 (06:03 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Fri, 1 Aug 2003 06:03:36 +0000 (06:03 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@626 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_dns.c | patch | blob | history |
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index d754610671420e44dd8d873c059d264c10bb40af..6121af025edbf6315d70b2ade03dcb347c780c43 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
{
/* the DNS lookup timed out */
- if (strstr (input_buffer, _("Note: nslookup is deprecated and may be removed from future releases.")) ||
- strstr (input_buffer, _("Consider using the `dig' or `host' programs instead. Run nslookup with")) ||
- strstr (input_buffer, _("the `-sil[ent]' option to prevent this message from appearing.")))
+ if (strstr (input_buffer, "Note: nslookup is deprecated and may be removed from future releases.") ||
+ strstr (input_buffer, "Consider using the `dig' or `host' programs instead. Run nslookup with") ||
+ strstr (input_buffer, "the `-sil[ent]' option to prevent this message from appearing."))
return STATE_OK;
/* the DNS lookup timed out */
- else if (strstr (input_buffer, _("Timed out")))
+ else if (strstr (input_buffer, "Timed out"))
return STATE_WARNING;
/* DNS server is not running... */
- else if (strstr (input_buffer, _("No response from server")))
+ else if (strstr (input_buffer, "No response from server"))
return STATE_CRITICAL;
/* Host name is valid, but server doesn't have records... */
- else if (strstr (input_buffer, _("No records")))
+ else if (strstr (input_buffer, "No records"))
return STATE_WARNING;
/* Host or domain name does not exist */
- else if (strstr (input_buffer, _("Non-existent")))
+ else if (strstr (input_buffer, "Non-existent"))
return STATE_CRITICAL;
- else if (strstr (input_buffer, _("** server can't find")))
+ else if (strstr (input_buffer, "** server can't find"))
return STATE_CRITICAL;
else if(strstr(input_buffer,"NXDOMAIN")) /* 9.x */
return STATE_CRITICAL;
/* Connection was refused */
- else if (strstr (input_buffer, _("Connection refused")))
+ else if (strstr (input_buffer, "Connection refused"))
return STATE_CRITICAL;
/* Network is unreachable */
- else if (strstr (input_buffer, _("Network is unreachable")))
+ else if (strstr (input_buffer, "Network is unreachable"))
return STATE_CRITICAL;
/* Internal server failure */
- else if (strstr (input_buffer, _("Server failure")))
+ else if (strstr (input_buffer, "Server failure"))
return STATE_CRITICAL;
/* DNS server refused to service request */
- else if (strstr (input_buffer, _("Refused")))
+ else if (strstr (input_buffer, "Refused"))
return STATE_CRITICAL;
/* Request error */
- else if (strstr (input_buffer, _("Format error")))
+ else if (strstr (input_buffer, "Format error"))
return STATE_WARNING;
else