Hello. Can somebody share a spanning-tree zabbix template, particulary for cisco devices? Maybe someone can share experience about monitoring STP from zabbix to help solve the problems described below?
We have some c4900m's with MSTP running.
For example, I know that MSTP is running on port Te3/1. This port has index 4127:
IF-MIB::ifName.4127
IF-MIB::ifName.4127 = STRING: Te3/1
If I try to ask the device about STP port status using this index I have no success, because STP MIB (CISCO-STP-EXTENSIONS-MIB) uses dot1dBridgePort indexes. For example, for Te3/1 it will be 257:
BRIDGE-MIB::dot1dBasePortIfIndex
BRIDGE-MIB::dot1dBasePortIfIndex.257 = INTEGER: 4127
Now, if I will make a query with index 257 I will have positive result:
CISCO-STP-EXTENSIONS-MIB::stpxRSTPPortRoleValue.0.257
CISCO-STP-EXTENSIONS-MIB::stpxRSTPPortRoleValue.0.257 = INTEGER: designated(3)
But! For some reason some on the ports didn't appear in the dot1dBasePortIfIndex. For example dot1dBasePortIfIndex do not showing me ports 1 and 2, but with the CISCO-STP-EXTENSIONS-MIB::stpxRSTPPortRoleValue.0.1 = INTEGER: root(2) - I see that it's there.
I know that it's more about Cisco devices and SNMP in general but STP port status is the common thing to monitor so I hope someone have something to share about it. Thank you.
We have some c4900m's with MSTP running.
For example, I know that MSTP is running on port Te3/1. This port has index 4127:
IF-MIB::ifName.4127
IF-MIB::ifName.4127 = STRING: Te3/1
If I try to ask the device about STP port status using this index I have no success, because STP MIB (CISCO-STP-EXTENSIONS-MIB) uses dot1dBridgePort indexes. For example, for Te3/1 it will be 257:
BRIDGE-MIB::dot1dBasePortIfIndex
BRIDGE-MIB::dot1dBasePortIfIndex.257 = INTEGER: 4127
Now, if I will make a query with index 257 I will have positive result:
CISCO-STP-EXTENSIONS-MIB::stpxRSTPPortRoleValue.0.257
CISCO-STP-EXTENSIONS-MIB::stpxRSTPPortRoleValue.0.257 = INTEGER: designated(3)
But! For some reason some on the ports didn't appear in the dot1dBasePortIfIndex. For example dot1dBasePortIfIndex do not showing me ports 1 and 2, but with the CISCO-STP-EXTENSIONS-MIB::stpxRSTPPortRoleValue.0.1 = INTEGER: root(2) - I see that it's there.
I know that it's more about Cisco devices and SNMP in general but STP port status is the common thing to monitor so I hope someone have something to share about it. Thank you.