diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index 53e3f1d757d01e155aa70e617e235d4ff4f7ce34..601b25d32178004370c01f0a74d2baa3122f6772 100644 (file)
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
switch (c)
{
case '?': /* print short usage statement if args not parsable */
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);
case 'h': /* help */
print_help();
exit(STATE_OK);
if (is_intnonneg(optarg))
server_port=atoi(optarg);
else
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)
break;
case 'v':
if (strlen(optarg)<3)
printf (_("\
This plugin attempts to contact the MRTGEXT NLM running on a\n\
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();
print_usage();
{
printf ("\
Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\
{
printf ("\
Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical]\n\
- [-t timeout].\n", progname);
+ [-t timeout].\n", progname);
}
}