summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2004-02-20 01:05:02 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2004-02-20 01:05:02 (GMT)
commit9750a7fca11a016a49136a0148250c11b812cc42 (patch)
tree8e3fb1a6f7c385e87925aa75d5679532e5942c78 /plugins
parentdec4bf622f70eb599c7f64ef244825be9b494154 (diff)
downloadmonitoring-plugins-9750a7fca11a016a49136a0148250c11b812cc42.tar.gz
Corrected usage message (Matt Pounsett)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@809 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_swap.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index ef12e79..dfa2180 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -328,7 +328,7 @@ process_arguments (int argc, char **argv)
328 case 'h': /* help */ 328 case 'h': /* help */
329 print_help (); 329 print_help ();
330 exit (STATE_OK); 330 exit (STATE_OK);
331 case '?': /* help */ 331 case '?': /* error */
332 usage (_("Invalid argument\n")); 332 usage (_("Invalid argument\n"));
333 } 333 }
334 } 334 }
@@ -407,7 +407,9 @@ print_help (void)
407 -c, --critical=PERCENT%%\n\ 407 -c, --critical=PERCENT%%\n\
408 Exit with CRITCAL status if less than PERCENT of swap space is free\n\ 408 Exit with CRITCAL status if less than PERCENT of swap space is free\n\
409 -a, --allswaps\n\ 409 -a, --allswaps\n\
410 Conduct comparisons for all swap partitions, one by one\n")); 410 Conduct comparisons for all swap partitions, one by one\n\
411 -v, --verbose\n\
412 Verbose output. Up to 3 levels\n"));
411 413
412 printf (_("\n\ 414 printf (_("\n\
413On Solaris, if -a specified, uses swap -l, otherwise uses swap -s.\n\ 415On Solaris, if -a specified, uses swap -l, otherwise uses swap -s.\n\
@@ -426,8 +428,8 @@ void
426print_usage (void) 428print_usage (void)
427{ 429{
428 printf (_("Usage:\n\ 430 printf (_("Usage:\n\
429 %s [-a] -w <used_percentage>%% -c <used_percentage>%%\n\ 431 %s [-av] -w <percent_free>%% -c <percent_free>%%\n\
430 %s [-a] -w <bytes_free> -c <bytes_free>\n\ 432 %s [-av] -w <bytes_free> -c <bytes_free>\n\
431 %s (-h | --help) for detailed help\n\ 433 %s (-h | --help) for detailed help\n\
432 %s (-V | --version) for version information\n"), 434 %s (-V | --version) for version information\n"),
433 progname, progname, progname, progname); 435 progname, progname, progname, progname);