diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-01 06:03:36 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-01 06:03:36 +0000 |
commit | 5133eb547102d5dfd19c064449ff031f994562e4 (patch) | |
tree | 6ddfc07133ff9af6acbc7a821020762cc3dcc52d | |
parent | 0b9ca89dbb0329b07a844f5b4de46e50171705d1 (diff) | |
download | monitoring-plugins-5133eb547102d5dfd19c064449ff031f994562e4.tar.gz |
do not translate the strings that will be compared to utility output - LC_ALL is set to C so those strings should be untranslated regardless of the system settings
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@626 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/check_dns.c | 26 |
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) { /* 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 |