[monitoring-plugins] Update check_swap usage
Git Repository
git at monitoring-plugins.org
Wed Jan 29 10:00:07 CET 2014
Module: monitoring-plugins
Branch: master
Commit: 813c02364f55c14fef396d83eed52874d8e16fb2
Author: Thomas Guyot-Sionnest <dermoth at aei.ca>
Date: Wed Jan 29 03:59:48 2014 -0500
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=813c023
Update check_swap usage
---
plugins/check_swap.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index d8fc14f..26dba0b 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -547,7 +547,7 @@ print_help (void)
printf (" %s\n", "-c, --critical=INTEGER");
printf (" %s\n", _("Exit with CRITICAL status if less than INTEGER bytes of swap space are free"));
printf (" %s\n", "-c, --critical=PERCENT%%");
- printf (" %s\n", _("Exit with CRITCAL status if less than PERCENT of swap space is free"));
+ printf (" %s\n", _("Exit with CRITICAL status if less than PERCENT of swap space is free"));
printf (" %s\n", "-a, --allswaps");
printf (" %s\n", _("Conduct comparisons for all swap partitions, one by one"));
printf (" %s\n", "-n, --no-swap=<ok|warning|critical|unknown>");
@@ -556,6 +556,7 @@ print_help (void)
printf ("\n");
printf ("%s\n", _("Notes:"));
+ printf (" %s\n", _("Both INTEGER and PERCENT thresholds can be specified, they are all checked."));
printf (" %s\n", _("On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s."));
printf (UT_SUPPORT);
@@ -567,6 +568,6 @@ void
print_usage (void)
{
printf ("%s\n", _("Usage:"));
- printf ("%s [-av] -w <percent_free>%% -c <percent_free>%%\n",progname);
- printf ("%s [-av] -w <bytes_free> -c <bytes_free>\n", progname);
+ printf (" %s [-av] -w <percent_free>%% -c <percent_free>%%\n",progname);
+ printf (" -w <bytes_free> -c <bytes_free> [-n <state>]\n");
}
More information about the Commits
mailing list