diff options
author | Ton Voon <ton.voon@opsera.com> | 2010-07-07 10:03:24 (GMT) |
---|---|---|
committer | Ton Voon <ton.voon@opsera.com> | 2010-07-07 10:03:24 (GMT) |
commit | 02f9207ebe3a5ae5b35b4b69be1f3bf95ab5a220 (patch) | |
tree | 48f2af3ab7704943f61dd79aa9d7d1d450bff96a | |
parent | 0205c7c0cfc5ba182f2cb675d1df4de72f13c9e2 (diff) | |
download | monitoring-plugins-02f9207ebe3a5ae5b35b4b69be1f3bf95ab5a220.tar.gz |
Fix examples in check_disk, where it implied was possible to suffix unit values to warn/crit parameters
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | plugins/check_disk.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -31,6 +31,7 @@ This file documents the major additions and syntax changes between releases. | |||
31 | Fix detection of pst3 64-bit compile flags with Sun CC | 31 | Fix detection of pst3 64-bit compile flags with Sun CC |
32 | Fix cmd_run overwriting the environment, which would break some commands that needed it | 32 | Fix cmd_run overwriting the environment, which would break some commands that needed it |
33 | Allow check_ifstatus to accept version=2c - used to only allow version=2 (Brian Landers) | 33 | Allow check_ifstatus to accept version=2c - used to only allow version=2 (Brian Landers) |
34 | Fix examples in check_disk, where it implied was possible to suffix unit values to warn/crit parameters | ||
34 | WARNINGS | 35 | WARNINGS |
35 | Updated developer documentation to say that performance labels should not have an equals sign or | 36 | Updated developer documentation to say that performance labels should not have an equals sign or |
36 | single quote in the label | 37 | single quote in the label |
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 4913625..851d800 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -963,10 +963,10 @@ print_help (void) | |||
963 | printf ("%s\n", _("Examples:")); | 963 | printf ("%s\n", _("Examples:")); |
964 | printf (" %s\n", "check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /"); | 964 | printf (" %s\n", "check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /"); |
965 | printf (" %s\n", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB")); | 965 | printf (" %s\n", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB")); |
966 | printf (" %s\n", "check_disk -w 100M -c 50M -C -w 1000M -c 500M -g sidDATA -r '^/oracle/SID/data.*$'"); | 966 | printf (" %s\n", "check_disk -w 100 -c 50 -C -w 1000 -c 500 -g sidDATA -r '^/oracle/SID/data.*$'"); |
967 | printf (" %s\n", _("Checks all filesystems not matching -r at 100M and 50M. The fs matching the -r regex")); | 967 | printf (" %s\n", _("Checks all filesystems not matching -r at 100M and 50M. The fs matching the -r regex")); |
968 | printf (" %s\n", _("are grouped which means the freespace thresholds are applied to all disks together")); | 968 | printf (" %s\n", _("are grouped which means the freespace thresholds are applied to all disks together")); |
969 | printf (" %s\n", "check_disk -w 100M -c 50M -C -w 1000M -c 500M -p /foo -C -w 5% -c 3% -p /bar"); | 969 | printf (" %s\n", "check_disk -w 100 -c 50 -C -w 1000 -c 500 -p /foo -C -w 5% -c 3% -p /bar"); |
970 | printf (" %s\n", _("Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use 100M/50M")); | 970 | printf (" %s\n", _("Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use 100M/50M")); |
971 | 971 | ||
972 | printf (UT_SUPPORT); | 972 | printf (UT_SUPPORT); |