diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-23 23:53:17 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-23 23:53:17 (GMT) |
commit | 589d4664919638bedd6e2e1710c323887d19584a (patch) | |
tree | 50514688170db6103000e94694111282e848cb6e /plugins/check_dns.c | |
parent | cc0f1249e662304282fb10c7d8538e4ab881b57e (diff) | |
download | monitoring-plugins-589d4664919638bedd6e2e1710c323887d19584a.tar.gz |
Standardising translation texts
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@929 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r-- | plugins/check_dns.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 43a38fa..39023f9 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -195,7 +195,7 @@ main (int argc, char **argv) | |||
195 | else | 195 | else |
196 | multi_address = TRUE; | 196 | multi_address = TRUE; |
197 | 197 | ||
198 | printf ("%s %s: ", _("DNS"), _("OK")); | 198 | printf ("DNS %s: ", _("OK")); |
199 | printf (ngettext("%.3f second response time, ", "%.3f seconds response time, ", elapsed_time), elapsed_time); | 199 | printf (ngettext("%.3f second response time, ", "%.3f seconds response time, ", elapsed_time), elapsed_time); |
200 | printf (_("%s returns %s"), query_address, address); | 200 | printf (_("%s returns %s"), query_address, address); |
201 | printf ("|%s\n", fperfdata ("time", elapsed_time, "s", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); | 201 | printf ("|%s\n", fperfdata ("time", elapsed_time, "s", FALSE, 0, FALSE, 0, TRUE, 0, FALSE, 0)); |
@@ -225,18 +225,18 @@ error_scan (char *input_buffer) | |||
225 | 225 | ||
226 | /* DNS server is not running... */ | 226 | /* DNS server is not running... */ |
227 | else if (strstr (input_buffer, "No response from server")) | 227 | else if (strstr (input_buffer, "No response from server")) |
228 | die (STATE_CRITICAL, _("No response from name server %s\n"), dns_server); | 228 | die (STATE_CRITICAL, _("No response from DNS %s\n"), dns_server); |
229 | 229 | ||
230 | /* Host name is valid, but server doesn't have records... */ | 230 | /* Host name is valid, but server doesn't have records... */ |
231 | else if (strstr (input_buffer, "No records")) | 231 | else if (strstr (input_buffer, "No records")) |
232 | die (STATE_CRITICAL, _("Name server %s has no records\n"), dns_server); | 232 | die (STATE_CRITICAL, _("DNS %s has no records\n"), dns_server); |
233 | 233 | ||
234 | /* Connection was refused */ | 234 | /* Connection was refused */ |
235 | else if (strstr (input_buffer, "Connection refused") || | 235 | else if (strstr (input_buffer, "Connection refused") || |
236 | strstr (input_buffer, "Refused") || | 236 | strstr (input_buffer, "Refused") || |
237 | (strstr (input_buffer, "** server can't find") && | 237 | (strstr (input_buffer, "** server can't find") && |
238 | strstr (input_buffer, ": REFUSED"))) | 238 | strstr (input_buffer, ": REFUSED"))) |
239 | die (STATE_CRITICAL, _("Connection to name server %s was refused\n"), dns_server); | 239 | die (STATE_CRITICAL, _("Connection to DNS %s was refused\n"), dns_server); |
240 | 240 | ||
241 | /* Host or domain name does not exist */ | 241 | /* Host or domain name does not exist */ |
242 | else if (strstr (input_buffer, "Non-existent") || | 242 | else if (strstr (input_buffer, "Non-existent") || |
@@ -250,7 +250,7 @@ error_scan (char *input_buffer) | |||
250 | 250 | ||
251 | /* Internal server failure */ | 251 | /* Internal server failure */ |
252 | else if (strstr (input_buffer, "Server failure")) | 252 | else if (strstr (input_buffer, "Server failure")) |
253 | die (STATE_CRITICAL, _("Server failure for %s\n"), dns_server); | 253 | die (STATE_CRITICAL, _("DNS failure for %s\n"), dns_server); |
254 | 254 | ||
255 | /* Request error or the DNS lookup timed out */ | 255 | /* Request error or the DNS lookup timed out */ |
256 | else if (strstr (input_buffer, "Format error") || | 256 | else if (strstr (input_buffer, "Format error") || |