summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5e63312)
raw | patch | inline | side by side (parent: 5e63312)
author | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Tue, 10 Jul 2007 20:45:48 +0000 (20:45 +0000) | ||
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Tue, 10 Jul 2007 20:45:48 +0000 (20:45 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1755 f882894a-f735-0410-b71e-b25c423dba1c
NEWS | patch | blob | history | |
plugins/check_disk.c | patch | blob | history |
index 7085e5c801c8b234a889b6f0857605c8991d7f13..79c427235e9095e465baf4974d411bf64155a5a3 100644 (file)
--- a/NEWS
+++ b/NEWS
is now deprecated. See --help for further information.
Check_disk now calls stat() on all filesystems to check. (Old: only the ones selected using -p)
A meaningful error message (eg "Stale NFS Handle") is printed if stat fails.
+ Check_disk's --help now prints some examples for the new features introduced in 1.4.8
1.4.9 4th June 2006
Inclusion of contrib/check_cluster2 as check_cluster with some improvements
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index cceb5be8c8d326b224eaeb6686399eb7a69a3ac9..845c74585ebcb3fff03a99ccf9de6e1e71a85493 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
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", _("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", _("Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use 100M/50M"));
printf (_(UT_SUPPORT));
}