I have seen this topic in the forum but the solution offered is not working for me, so I am posting it as a new topic,.
I am using nagios check_disk plugin to monitor all the linux partition which are mounted and visible using df -h command but it seems it is not working that way.
Please see the below df -h output
Code: Select all
Filesystem Size Used Avail Use% Mounted on
devtmpfs 18G 0 18G 0% /dev
tmpfs 18G 110M 18G 1% /dev/shm
tmpfs 18G 714M 17G 4% /run
tmpfs 18G 0 18G 0% /sys/fs/cgroup
/dev/mapper/rootvg-LV01 9.8G 764M 8.5G 9% /
/dev/mapper/rootvg-LV04 9.8G 3.5G 5.8G 38% /usr
/dev/sda1 976M 138M 772M 16% /boot
/dev/mapper/rootvg-LV09 20G 3.5G 16G 19% /u01/app/ora11g
/dev/mapper/rootvg-LV08 48G 15G 31G 33% /backup
/dev/mapper/rootvg-LV07 48G 16G 30G 35% /logs
/dev/mapper/rootvg-LV05 4.8G 265M 4.3G 6% /tmp
/dev/mapper/rootvg-LV06 9.8G 2.3G 7.0G 25% /code
/dev/mapper/rootvg-LV02 6.8G 700M 5.8G 11% /home
/dev/mapper/rootvg-LV03 4.8G 2.5G 2.1G 54% /var
Now I am using below command on this server itself.
Code: Select all
/usr/local/nagios/libexec/check_disk -w 50% -c 30% /
DISK OK - free space: / 8659 MiB (91.89% inode=98%);| /=763MiB;4975;6965;0;9951
[test@meserver ~]$ /usr/local/nagios/libexec/check_disk -w 50% -c 30% /*
DISK OK - free space: /backup 30978 MiB (67.67% inode=100%);| /backup=14800MiB;24126;33776;0;48252
Can anyone help here where I can monitor all the partition using check_disk command.