I am wrestling with adding support for BGP traps coming from zebra/quagga software on linux.
It seems impossible to find these traps documented in MIB's somewhere so I was wondering if any of you has already worked this out.
I know which traps are sent when establishing peering or loss of a peer, but I don't know if there are more traps.
What I have so far:
Trap type 18.104.22.168.4.1.3322.214.171.124.6.1 and 126.96.36.199.4.1.33188.8.131.52.6.2 Trap var bind data: OID: 184.108.40.206.220.127.116.11.1.14.AAA.BBB.CCC.DDD Value: OID: 18.104.22.168.22.214.171.124.1.2.AAA.BBB.CCC.DDD Value: 6
The varbind OID's refer to bgpPeerLastError and bgpPeerState from rfc1269.
The AAA.BBB.CCC.DDD refers to the IP-adress of the peer, but I'm not sure about how to pull those out since it is part of the varbind OID and not the actual value. I haven't looked into the docs too much yet to see how this might work. I was hoping maybe someone here already has the AlertMap and EventDisp for this...
It's been a while and we have focused on other things for while, but this came up again recently and I found one of my own posts as a search result. I did also find an answer to my own question somewhere else. A MIB is now published for zebra. You can find a current version by searching for GNOME-PRODUCT-ZEBRA-MIB.