check_disk to check all drives
Posted: Thu May 19, 2016 1:54 am
Hi All,
I have check disk with the following command. The other day my /var/log reached 95% however Nagios did not alert me. I wonder if my command only check / and does not check attached drive such as /var/log
My file server file system as per below.
What I need is a disk check to give me warning when the usage or inode reached 80% and critical when reached 90% for all my drives.
I have check disk with the following command. The other day my /var/log reached 95% however Nagios did not alert me. I wonder if my command only check / and does not check attached drive such as /var/log
Code: Select all
command[check_disks]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -C -W 20% -K 10% -p /
Code: Select all
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 9.9G 6.1G 3.3G 65% /
udev 1.9G 12K 1.9G 1% /dev
tmpfs 376M 344K 375M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 12K 1.9G 1% /run/shm
/dev/xvdb 4.0G 73M 3.7G 2% /mnt
/dev/xvdf 9.9G 3.6G 5.9G 38% /var/log