Im using Debian 6 and installed newest Nagios Core.
I want to monitor disk space of windows host it would be disk C and D. I downloaded 2 plugins from nagios exchange put them into /usr/lib/nagios/plugins/. I defined commands in /etc/nagios3/commands.cfg and it looked like this.
First plugin command defined:
Code: Select all
define command{
command_name check_snmp_disksize
command_line /usr/lib/nagios/plugins/check_snmp_disksize -H $HOSTADDRESS$ -C $ARG1$ -d $ARG2$ -w $ARG3$ -c $ARG4$
}
Code: Select all
define command{
command_name check_disk_snmp
command_line /usr/lib/nagios/plugins/check_disk_snmp $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
} Code: Select all
define service{
use generic-service
host_name dc
service_description Status C:
check_command check_disk_snmp!public!1!80!90
}
#define service{
use generic-service
host_name dc
service_description Status D:
check_command check_disk_snmp!public!2!80!90
}
Code: Select all
define service{
use generic-service
host_name dc
service_description Disk check
check_command check_snmp_disksize!public!C:!80!90
}