check_disk has an option to 'clear thresholds' (-C), what does this do? What thresholds is it clearing, and why would you want to clear them?
Thanks
check_disk 'clear thresholds' option
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_disk 'clear thresholds' option
That is so that you can check multiple shares/partitions/drives with different warning and critical thresholds:
Examples:
check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /
Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB
check_disk -w 100 -c 50 -C -w 1000 -c 500 -g sidDATA -r '^/oracle/SID/data.*$'
Checks all filesystems not matching -r at 100M and 50M. The fs matching the -r regex
are grouped which means the freespace thresholds are applied to all disks together
check_disk -w 100 -c 50 -C -w 1000 -c 500 -p /foo -C -w 5% -c 3% -p /bar
Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use 100M/50M
Re: check_disk 'clear thresholds' option
Great answer. That makes sense.
Thanks!
Thanks!