Page MenuHomeVyOS Platform

SNMP integration with routing daemons broken.
Closed, ResolvedPublicBUG


FRR's SNMP support is incompatible with the legacy Quagga SNMP implementation provided by 1.2.0: Instead of using the SMUX peer functionality of SNMPd, FRR uses the SNMP agent architecture.

It looks like the following changes are required:

  • Adding "-M SNMP" to the relevant lines in /etc/frr/daemons.conf for zebra, bgpd, ospfd, ospf6d, ripd:
zebra_options="  -s 90000000 --daemon -A -M snmp -n"
bgpd_options="   --daemon -A -M snmp"
ospfd_options="  --daemon -A -M snmp"
ospf6d_options=" --daemon -A ::1 -M snmp"
ripd_options="   --daemon -A -M snmp"
ripngd_options=" --daemon -A ::1"
isisd_options="  --daemon -A"
pimd_options="  --daemon -A"
ldpd_options="  --daemon -A"
nhrpd_options="  --daemon -A"
eigrpd_options="  --daemon -A"
babeld_options="  --daemon -A"
sharpd_options="  --daemon -A"
pbrd_options="  --daemon -A"
staticd_options="  --daemon -A"
bfdd_options="  --daemon -A"

watchfrr_options=(-d -r /usr/lib/frr/frrbBrestartbB%s -s /usr/lib/frr/frrbBstartbB%s -k /usr/lib/frr/frrbBstopbB%s -b bB)

  • Add 'agentx' to the FRR config files for the above daemons.
  • Comment out the following lines from /etc/snmp/snmpd.conf:
smuxpeer .
smuxpeer .
smuxpeer .
smuxpeer .
smuxpeer .
  • Additionally, the agentx socket needs to be writable by the frr user:
agentXPerms 0777 0777

Obviously the above configuration will be destroyed during configuration and/or upgrades.


Difficulty level
Normal (likely a few hours)
Why the issue appeared?
Will be filled on close

Event Timeline

syncer triaged this task as Normal priority.
syncer edited projects, added VyOS 1.2 Crux (VyOS 1.2.0-rc4); removed VyOS 1.2 Crux.
This comment was removed by c-po.

Hello, we have the same (or similar) problem. After replacing Zebra by FRR, we can't get information from VyOS about BGP Peer status via old SNMP OID.

For example, this is output from VyOS 1.2.0-rolling+201806050337:
[email protected]:~# snmpwalk -v2c -c supercommunity x.x.x.x .
iso. = INTEGER: 6
iso. = INTEGER: 6
iso. = INTEGER: 6
iso. = INTEGER: 6
[email protected]:~#

And this output from VyOS 1.2.0-rolling+201810210337 (today's build):
[email protected]:~# snmpwalk -v2c -c supercommunity x.x.x.x .
iso. = No Such Object available on this agent at this OID
[email protected]:~#

Can we do something to help you solve the problem? Maybe you need more information?

Problem is partly fixed in the latest rolling release. Only this manual step is required in addition at this time:

[email protected]:~$ vtysh -c "configure terminal" -c "agentx"

Would it be possible to ask also for IPv6 support?

I mean, the current 1.8 just gives me snmp informations about the IPv4 routing protocols, and not the IPv6.

@MrFunken IPv6 is handled via T366.

This task is resolved