Hello,
I have posted for the past couple years about librenms not reporting, alerting, on BGP sessions on cisco routers with IOS-XR. So i have a few cycles and started to look into things more.
First i dug into the mib using -
Cisco MIB browser
i found the MIB - BGP4-MIB, assuming that is the MIB librenms is using, i located the spot on where in the MIB it is looking for the state -
bgpPeerState OBJECT-TYPE
SYNTAX INTEGER {
idle(1),
connect(2),
active(3),
opensent(4),
openconfirm(5),
established(6)
}
I then checked my alert rules and verified things are configured correctly for the “BGP Down” alert.
In my alerts with my 3 routers, all NCS / IOS-XR, every session is reporting on the following state -
So tonight i started to look at the details of the alert - and found that there is NO data, interger in the response and other data missing -
So the next thing i did was an snmpwalk - on the following OID -
1.3.6.1.2.1.15.3.1.2
Here are my results that show the interger value -
There are 2 VRF’s on this router and this snmpwalk did not show the BGP sessions did not show the sessions for the other VRF. That i need to figure out before i post about that.
Am I missing something with librenms? Am i doing something wrong?
Any ideas would be great.
Thank you for reading.
Stay safe,
-Mike