[monitoring-plugins] check_users: Update help to properly show that ...

RincewindsHat git at monitoring-plugins.org
Sun Nov 12 02:40:12 CET 2023


 Module: monitoring-plugins
 Branch: master
 Commit: a9d77ac5456fa0366783f7fec2525d4c159fecdf
 Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
   Date: Tue Oct 31 01:51:27 2023 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=a9d77ac

check_users: Update help to properly show that thresholds are ranges

---

 plugins/check_users.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/check_users.c b/plugins/check_users.c
index 916a691..89b9536 100644
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
@@ -266,10 +266,10 @@ print_help (void)
 	printf (UT_HELP_VRSN);
 	printf (UT_EXTRA_OPTS);
 
-	printf (" %s\n", "-w, --warning=INTEGER");
-	printf ("    %s\n", _("Set WARNING status if more than INTEGER users are logged in"));
-	printf (" %s\n", "-c, --critical=INTEGER");
-	printf ("    %s\n", _("Set CRITICAL status if more than INTEGER users are logged in"));
+	printf (" %s\n", "-w, --warning=RANGE_EXPRESSION");
+	printf ("    %s\n", _("Set WARNING status if number of logged in users violates RANGE_EXPRESSION"));
+	printf (" %s\n", "-c, --critical=RANGE_EXPRESSION");
+	printf ("    %s\n", _("Set CRITICAL status if number of logged in users violates RANGE_EXPRESSION"));
 
 	printf (UT_SUPPORT);
 }



More information about the Commits mailing list