diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-21 09:00:33 +0200 |
---|---|---|
committer | Lorenz Kästle <lorenz.kaestle@netways.de> | 2023-09-21 12:09:10 +0200 |
commit | 8faf7afad389b74d6fe67a2ece10e85b9f614a13 (patch) | |
tree | 736a233702b01d0e42c98d464b2249f49b49b021 /plugins/check_disk.c | |
parent | b01aa8c43390a4e32197abedc84af20fd8a8faf6 (diff) | |
download | monitoring-plugins-8faf7af.tar.gz |
check_disk: Add some general usage hints
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r-- | plugins/check_disk.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 35fd4811..b3edc415 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -1009,6 +1009,14 @@ print_help (void) | |||
1009 | printf (" %s\n", _("Check only filesystems of indicated type (may be repeated)")); | 1009 | printf (" %s\n", _("Check only filesystems of indicated type (may be repeated)")); |
1010 | 1010 | ||
1011 | printf ("\n"); | 1011 | printf ("\n"); |
1012 | printf ("%s\n", _("General usage hints:")); | ||
1013 | printf (" %s\n", _("- Arguments are positional! \"-w 5 -c 1 -p /foo -w6 -c2 -p /bar\" is not the same as")); | ||
1014 | printf (" %s\n", _("\"-w 5 -c 1 -p /bar w6 -c2 -p /foo\".")); | ||
1015 | printf (" %s\n", _("- The syntax is broadly: \"{thresholds a} {paths a} {thresholds b} {thresholds b} ...\"")); | ||
1016 | |||
1017 | |||
1018 | |||
1019 | printf ("\n"); | ||
1012 | printf ("%s\n", _("Examples:")); | 1020 | printf ("%s\n", _("Examples:")); |
1013 | printf (" %s\n", "check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /"); | 1021 | printf (" %s\n", "check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /"); |
1014 | printf (" %s\n\n", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB")); | 1022 | printf (" %s\n\n", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB")); |