summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@users.sourceforge.net>2007-07-10 20:45:48 +0000
committerMatthias Eble <psychotrahe@users.sourceforge.net>2007-07-10 20:45:48 +0000
commitaca23c4640dbe4696b38032d44c06d74d023c96d (patch)
treeef3284de2ff84ae0738da39e47990a2052341ddb
parent5e633124e4573c98d5457144e401fb0d22e45ae6 (diff)
downloadmonitoring-plugins-aca23c4640dbe4696b38032d44c06d74d023c96d.tar.gz
Added examples for new features to check_disk
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1755 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--NEWS1
-rw-r--r--plugins/check_disk.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 7085e5c8..79c42723 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ This file documents the major additions and syntax changes between releases.
6 is now deprecated. See --help for further information. 6 is now deprecated. See --help for further information.
7 Check_disk now calls stat() on all filesystems to check. (Old: only the ones selected using -p) 7 Check_disk now calls stat() on all filesystems to check. (Old: only the ones selected using -p)
8 A meaningful error message (eg "Stale NFS Handle") is printed if stat fails. 8 A meaningful error message (eg "Stale NFS Handle") is printed if stat fails.
9 Check_disk's --help now prints some examples for the new features introduced in 1.4.8
9 10
101.4.9 4th June 2006 111.4.9 4th June 2006
11 Inclusion of contrib/check_cluster2 as check_cluster with some improvements 12 Inclusion of contrib/check_cluster2 as check_cluster with some improvements
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index cceb5be8..845c7458 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -885,6 +885,11 @@ print_help (void)
885 printf ("%s\n", _("Examples:")); 885 printf ("%s\n", _("Examples:"));
886 printf (" %s\n", "check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /"); 886 printf (" %s\n", "check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /");
887 printf (" %s\n", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB")); 887 printf (" %s\n", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB"));
888 printf (" %s\n", "check_disk -w 100M -c 50M -C -w 1000M -c 500M -g sidDATA -r '^/oracle/SID/data.*$'");
889 printf (" %s\n", _("Checks all filesystems not matching -r at 100M and 50M. The fs matching the -r regex"));
890 printf (" %s\n", _("are grouped which means the freespace thresholds are applied to all disks together"));
891 printf (" %s\n", "check_disk -w 100M -c 50M -C -w 1000M -c 500M -p /foo -C -w 5% -c 3% -p /bar");
892 printf (" %s\n", _("Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use 100M/50M"));
888 printf (_(UT_SUPPORT)); 893 printf (_(UT_SUPPORT));
889} 894}
890 895