X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fcheck_nwstat.c;h=601b25d32178004370c01f0a74d2baa3122f6772;hb=3982b98ba2db3ebebf65d7f0f4ad83a55a3efc49;hp=53e3f1d757d01e155aa70e617e235d4ff4f7ce34;hpb=30a4266a3a624abbbaace89141f1369ecb5367aa;p=nagiosplug.git diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c index 53e3f1d..601b25d 100644 --- a/plugins/check_nwstat.c +++ b/plugins/check_nwstat.c @@ -760,9 +760,7 @@ int process_arguments(int argc, char **argv) { switch (c) { case '?': /* print short usage statement if args not parsable */ - printf ("%s: Unknown argument: %s\n\n", progname, optarg); - print_usage(); - exit(STATE_UNKNOWN); + usage2 (_("Unknown argument"), optarg); case 'h': /* help */ print_help(); exit(STATE_OK); @@ -779,7 +777,7 @@ int process_arguments(int argc, char **argv) { if (is_intnonneg(optarg)) server_port=atoi(optarg); else - die(STATE_UNKNOWN,_("Server port an integer (seconds)\nType '%s -h' for additional help\n"),progname); + die(STATE_UNKNOWN,_("Server port an integer\n")); break; case 'v': if (strlen(optarg)<3) @@ -909,8 +907,7 @@ void print_help(void) printf (_("\ This plugin attempts to contact the MRTGEXT NLM running on a\n\ -Novell server to gather the requested system information.\n\n"), - progname); +Novell server to gather the requested system information.\n\n")); print_usage(); @@ -989,5 +986,5 @@ void print_usage(void) { printf ("\ Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\ - [-t timeout].\n", progname); + [-t timeout].\n", progname); }