Vyos monitoring BGP peers with SNMP

I am having trouble getting important information I need with SNMP while using newer versions of Vyos. Specifically I can not get BGP peer information while using Vyos 1.5-rolling. The information was available in Vyos 1.3.2. The BGP4-MIB file in Vyos 1.5-rolling is showing the same OID for the peer state but it gives an error “Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.”
It also does not show up while trying an snmpwalk.
Specifically I am needing to monitor BGP peer state.
I have been using the oid .1.3.6.1.2.1.15.3.1.2.XXX.XXX.XXX.XXX where “XXX.XXX.XXX.XXX” is the IP address of the peer.
This works in v1.3.2 but not 1.5-rolling.

Welcome back after 9 years! :slight_smile:
I would suggest logging a ticket at vyos.dev if you have an account there, otherwise requesting one so you’re able to.

1 Like

Hi,

In 1.4 and higher the SNMP stuff for FRR is disabled by default. You need to enable it using:

set system frr snmp bgpd
1 Like

Thank you so much, I will give it a try.

I’m not sure if I had to restart the router to get it working…

1 Like

Yes, according to the message I received when commiting the command, you have to at least restart FRR or reboot the router.

1 Like