Code

Fix examples in check_disk, where it implied was possible to suffix unit values to...
authorTon Voon <ton.voon@opsera.com>
Wed, 7 Jul 2010 10:03:24 +0000 (11:03 +0100)
committerTon Voon <ton.voon@opsera.com>
Wed, 7 Jul 2010 10:03:24 +0000 (11:03 +0100)
NEWS
plugins/check_disk.c

diff --git a/NEWS b/NEWS
index dc2092dbe97d665b91e7291ce73298f3f004ce1e..6818a596717264f576b89f2c0d7cf6a54dce6dfb 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -31,6 +31,7 @@ This file documents the major additions and syntax changes between releases.
        Fix detection of pst3 64-bit compile flags with Sun CC
        Fix cmd_run overwriting the environment, which would break some commands that needed it
        Allow check_ifstatus to accept version=2c - used to only allow version=2 (Brian Landers)
        Fix detection of pst3 64-bit compile flags with Sun CC
        Fix cmd_run overwriting the environment, which would break some commands that needed it
        Allow check_ifstatus to accept version=2c - used to only allow version=2 (Brian Landers)
+       Fix examples in check_disk, where it implied was possible to suffix unit values to warn/crit parameters
        WARNINGS
        Updated developer documentation to say that performance labels should not have an equals sign or
        single quote in the label
        WARNINGS
        Updated developer documentation to say that performance labels should not have an equals sign or
        single quote in the label
index 49136255eba27f4d93f8f08a879b524e87570b12..851d800d14adc19e9752516f1c50f052d2eb2fb9 100644 (file)
@@ -963,10 +963,10 @@ print_help (void)
   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", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB"));
   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", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB"));
-  printf (" %s\n", "check_disk -w 100M -c 50M -C -w 1000M -c 500M -g sidDATA -r '^/oracle/SID/data.*$'");
+  printf (" %s\n", "check_disk -w 100 -c 50 -C -w 1000 -c 500 -g sidDATA -r '^/oracle/SID/data.*$'");
   printf ("    %s\n", _("Checks all filesystems not matching -r at 100M and 50M. The fs matching the -r regex"));
   printf ("    %s\n", _("are grouped which means the freespace thresholds are applied to all disks together"));
   printf ("    %s\n", _("Checks all filesystems not matching -r at 100M and 50M. The fs matching the -r regex"));
   printf ("    %s\n", _("are grouped which means the freespace thresholds are applied to all disks together"));
-  printf (" %s\n", "check_disk -w 100M -c 50M -C -w 1000M -c 500M -p /foo -C -w 5% -c 3% -p /bar");
+  printf (" %s\n", "check_disk -w 100 -c 50 -C -w 1000 -c 500 -p /foo -C -w 5% -c 3% -p /bar");
   printf ("    %s\n", _("Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use 100M/50M"));
 
   printf (UT_SUPPORT);
   printf ("    %s\n", _("Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use 100M/50M"));
 
   printf (UT_SUPPORT);