My goal is to monitor a certain partition (/var) on a remote server, specifically the "/log" folder. Then, once the partition fills to over 50%, I want it to spit out an email to the notify group and a page.
The Nagios server is running openSUSE 10.3 x64 and was installed via RPM.
After running a df on the nagios box and the remote host, it seems as though it is getting the readings locally and not off the remote server. I am confused as to how to set up Nagios and the plugin so it can read the data off the remote server.
I added/edited the following config files (in /etc/nagios):
'check_disk' command definition
command_line $USER1$/check_disk -w 50% -c 75% -p /var/log -C
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 50% -c 75% -p /var/log
use generic-service ; Name of service template to use
service_description Check Disk
I've done a ton of research last week and got this far. I was wondering if anyone could at least steer me in the right direction. Thank you in advance.