How can I use nagios to check for disk space on a remote machine?
I'm running 3RC2 on Fedora 8. Been looking around and not getting too far.
I have hosts setup and disk checks...but I discovered that it is actually checking the local system, not the remote. Here is the command:
define service{
use local-service ; Name of service template to use
host_name myserver
service_description Root Partition
check_command check_local_disk!20%!10%!/
}
define service{
use local-service ; Name of service template to use
host_name myserver
service_description boot
check_command check_local_disk!20%!10%!/
boot
}
and so on for /usr /var etc...
in the commands.cfg, i have this for the command line:
# 'check_local_disk' command definition
define command{
command_name check_local_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}
I understand it's checking the local drive...need to check space on the remote drives.
Other remote checks like cpu, http are working fine remotely.
Start Free Trial