summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index c1c4ea83..5f221218 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}