diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-25 23:17:46 (GMT) |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-25 23:17:46 (GMT) |
commit | e9ccc6b21a1152bbf150302c4a29a6df79d75bd7 (patch) | |
tree | 91bf1ebb6f927fd628b298df2ac5a89580282591 /plugins/check_snmp.c | |
parent | 71656b2aafffb69716620bf08cce76c925dc8fa3 (diff) | |
download | monitoring-plugins-e9ccc6b21a1152bbf150302c4a29a6df79d75bd7.tar.gz |
various fixes for localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1061 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r-- | plugins/check_snmp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index c1c4ea8..5f22121 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -251,7 +251,7 @@ main (int argc, char **argv) | |||
251 | eval_method[i] & WARN_NE) { | 251 | eval_method[i] & WARN_NE) { |
252 | p2 = strpbrk (p2, "0123456789"); | 252 | p2 = strpbrk (p2, "0123456789"); |
253 | if (p2 == NULL) | 253 | if (p2 == NULL) |
254 | die (STATE_UNKNOWN,"No valid data returned"); | 254 | die (STATE_UNKNOWN,_("No valid data returned")); |
255 | response_value[i] = strtoul (p2, NULL, 10); | 255 | response_value[i] = strtoul (p2, NULL, 10); |
256 | iresult = check_num (i); | 256 | iresult = check_num (i); |
257 | asprintf (&show, "%lu", response_value[i]); | 257 | asprintf (&show, "%lu", response_value[i]); |
@@ -398,9 +398,7 @@ process_arguments (int argc, char **argv) | |||
398 | 398 | ||
399 | switch (c) { | 399 | switch (c) { |
400 | case '?': /* usage */ | 400 | case '?': /* usage */ |
401 | printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); | 401 | usage2 (_("Unknown argument"), optarg); |
402 | print_usage (); | ||
403 | exit (STATE_UNKNOWN); | ||
404 | case 'h': /* help */ | 402 | case 'h': /* help */ |
405 | print_help (); | 403 | print_help (); |
406 | exit (STATE_OK); | 404 | exit (STATE_OK); |
@@ -795,7 +793,7 @@ thisarg (char *str) | |||
795 | str += strspn (str, " \t\r\n"); /* trim any leading whitespace */ | 793 | str += strspn (str, " \t\r\n"); /* trim any leading whitespace */ |
796 | if (strstr (str, "'") == str) { /* handle SIMPLE quoted strings */ | 794 | if (strstr (str, "'") == str) { /* handle SIMPLE quoted strings */ |
797 | if (strlen (str) == 1 || !strstr (str + 1, "'")) | 795 | if (strlen (str) == 1 || !strstr (str + 1, "'")) |
798 | die (STATE_UNKNOWN, "Unbalanced quotes\n"); | 796 | die (STATE_UNKNOWN, _("Unbalanced quotes\n")); |
799 | } | 797 | } |
800 | return str; | 798 | return str; |
801 | } | 799 | } |