summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-01 06:03:36 +0000
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-01 06:03:36 +0000
commit5133eb547102d5dfd19c064449ff031f994562e4 (patch)
tree6ddfc07133ff9af6acbc7a821020762cc3dcc52d
parent0b9ca89dbb0329b07a844f5b4de46e50171705d1 (diff)
downloadmonitoring-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.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