Hi,
I have many volumes in my Unix Machines, but am not able to understand how to actually monitor the %age utilisation of all the volumes and generate an alarm.
Please guide me to do so.
Rgds
Hi,
I have many volumes in my Unix Machines, but am not able to understand how to actually monitor the %age utilisation of all the volumes and generate an alarm.
Please guide me to do so.
Rgds
Gautam,
I use the check_by_ssh command to check remote linux machines disk usage. I created a check command called check_diskpath_by_ssh
define command{
command_name check_diskpath_by_ssh
command_line $USER1$/check_by_ssh -4 -t15 -i /keypath/keyfile -l support -H $HOSTNAME$ -C "/usr/lib/nagios/plugins/check_disk -w 15% -c 5% -p $ARG1$ --units GB"
}
The remote linux box must have the plugins installed in /usr/lib/nagios/plugins (or modify the command above). Notice the -p $ARG$ in the command above. That will allow you to pick a path to check. Here is a snippet from my service check:
check_command check_diskpath_by_ssh!/opt
That command will check the disk usage of the /opt path with a warning of 15% and a critical of 5% remaining free space. Adjust the percentages as you see fit. You will need to have separate service checks for each path for the host.