This all depends a little bit... but after using Google and some testing against a Cisco device, I found out this:
1 - ISO assigned OIDs
1.3 - ISO Identified Organization
1.3.6 - US Department of Defense
1.3.6.1 - OID assignments from 1.3.6.1 - Internet
1.3.6.1.2 - IETF Management
1.3.6.1.2.1 - SNMP MIB-2
1.3.6.1.2.1.4 - ip
1.3.6.1.2.1.4.21 - ipRouteTable
what did not help me - not even with a WALK - so I kicked out .21 - using this OID:
1.3.6.1.2.1.4
and did a walk - and there I could see all my routes...
Now - you asked specifically for the routing protocol OSPF - what adds a lot more complexity to this task - and I don't have it enabled and building a test-network with it would honestly take to much time for me personally, but here is a Cisco article about it: https://www.cisco.com/c/en/us/support/docs/availability/high-availability/15408-ospf-snmp-config.html
Interesting or a something to start with might be any Error/Status change counter in the Interface or the Neighbors table...
- OspfIfEvents
- ospfNbrEvents
Probably the LSA count as well..
But I admit that it is a while that I used OSPF - I would need to review how it worked in detail before I would be able to monitor it - but from what I see there and assuming you have the knowledge and protocol specifications in mind (unlike me who forgot half of it or more...) you should be able to figure this out in no time and create some fancy SNMP sensors.
You did not specify if you use a Cisco router / switch at all - so I am not sure if either of those answers will help you - but yes it is possibly assuming your vendor supports it.
Regards
Florian Rossmark
www.it-admins.com
Add comment