[monitoring-plugins] check_disk: Add some general usage hints

Lorenz Kästle git at monitoring-plugins.org
Thu Sep 21 12:30:12 CEST 2023


    Module: monitoring-plugins
    Branch: master
    Commit: 8faf7afad389b74d6fe67a2ece10e85b9f614a13
    Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
 Committer: Lorenz Kästle <lorenz.kaestle at netways.de>
      Date: Thu Sep 21 09:00:33 2023 +0200
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=8faf7af

check_disk: Add some general usage hints

---

 plugins/check_disk.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 35fd481..b3edc41 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -1009,6 +1009,14 @@ print_help (void)
   printf ("    %s\n", _("Check only filesystems of indicated type (may be repeated)"));
 
   printf ("\n");
+  printf ("%s\n", _("General usage hints:"));
+  printf (" %s\n", _("- Arguments are positional! \"-w 5 -c 1 -p /foo -w6 -c2 -p /bar\" is not the same as"));
+  printf ("   %s\n", _("\"-w 5 -c 1 -p /bar w6 -c2 -p /foo\"."));
+  printf (" %s\n", _("- The syntax is broadly: \"{thresholds a} {paths a} {thresholds b} {thresholds b} ...\""));
+
+
+
+  printf ("\n");
   printf ("%s\n", _("Examples:"));
   printf (" %s\n", "check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /");
   printf ("    %s\n\n", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB"));



More information about the Commits mailing list