i have install nagios to monitor a several linux server.
today i want to monitor a cisco 3560 switch and i follow :
define service{
use generic-service
host_name cisco3560
service_description Port23 Link Status
check_command check_snmp!-C public -o ifOperStatus.24 -r 1 -m RFC1213-MIB
}
define service{
use generic-service
host_name cisco3560
service_description Port24 Link Status
check_command check_snmp!-C public -o ifOperStatus.25 -r 1 -m RFC1213-MIB
}
i know that in nagios document check_snmp, the snmp 1 is up ,and snmp 2 is down .
on my cisco 3560 port 23 is up and in nagios is "Status Information SNMP OK -1" ,service is OK,that's right
but the port 24 is down , nagios show "Status Information SNMP OK -2", but service is still OK,i confused,
anybody know why? thanks