How do I set status based on check?
Posted: Wed Mar 28, 2012 7:36 pm
I am having trouble understanding exactly how I go about setting the status based on a check_snmp. Here is my service definitions
What gets displayed in status information:
SNMP OK - 1 (this is if the interface is up)
SNMP OK - 2 (this is if the interface is down)
Ideally I would like to have this be yellow:warning if the interface has been down less than 5 minuets and red:critical if 5 minuets or longer, but even just setting it to one or the other is acceptable.
Thanks
Code: Select all
define service{
use generic-service
host_name cisco1760
service_description FastEthernet0/0 Status
check_command check_snmp!-C public -o ifOperStatus.2
}
SNMP OK - 1 (this is if the interface is up)
SNMP OK - 2 (this is if the interface is down)
Ideally I would like to have this be yellow:warning if the interface has been down less than 5 minuets and red:critical if 5 minuets or longer, but even just setting it to one or the other is acceptable.
Thanks