Page 1 of 1

check_disk 'clear thresholds' option

Posted: Thu Nov 14, 2013 6:21 am
by FujitsuPK
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

Re: check_disk 'clear thresholds' option

Posted: Thu Nov 14, 2013 10:54 am
by slansing
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

Posted: Thu Nov 14, 2013 11:06 am
by FujitsuPK
Great answer. That makes sense.

Thanks!