I would like to use check_disk to check the free space of /var01. This is a simple directory created under /.
How do I do this?
If I do _not_ use -E, check_disk will report the free space of /var. Which does not make sense to me, instead I would expect it to report the free space of /.
If I _do_ use -E, check disk will complain that /var01 is not found.
I am probably missing the obvious, looking forward to be enlightened
---
Code: Select all
# mkdir /var01
# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 8.9G 3.0G 5.5G 35% /
# df -h /var
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.5G 5.0G 4.1G 56% /var
# df -h /var01
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 8.9G 3.0G 5.5G 35% /
# ./plugins/check_disk -w 10% -c 5% -W 10% -K 5% -p /var01
DISK OK - free space: /var 4119 MB (44% inode=98%);| /var=5068MB;8719;9203;0;9688
# ./plugins/check_disk -w 10% -c 5% -W 10% -K 5% -E -p /var01
DISK CRITICAL: /var01 not found
# ./plugins/check_disk --version
check_disk v2.0.2 (nagios-plugins 2.0.2)