from that url, i came to this:
Code:
define command {
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $COMMUNITY$ -o $OID$
}
define service {
use local-service
host_name win2003
service_description Checks disk capacity
check_command check_snmp!192.168.56.2!public!HOST-RESOURCES-MIB::hrDiskStorageCapacity.6
}
but the result is
SNMP problem - No data received from host on the Information column for that particular host Service Status Details For Host...
I derived that from this command
Code:
/usr/lib/nagios/plugins/check_snmp -H 192.168.56.2 -C public -o HOST-RESOURCES-MIB::hrDiskStorageCapacity.6
with this output
Code:
SNMP OK - 2093804 KBytes |
I don't know why is that pipe sign showed up but why the same did not work for the check_command in host file?