Page MenuHomePhabricator

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
DaveH created this task.Oct 20 2018, 9:33 AM
syncer assigned this task to dmbaturin.Oct 20 2018, 9:35 AM
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.
oliko added a subscriber: oliko.Oct 20 2018, 12:41 PM
c-po added a subscriber: c-po.Oct 20 2018, 1:09 PM
This comment was removed by c-po.
oliko added a comment.EditedOct 21 2018, 11:15 AM

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:
root@zabbix:~# snmpwalk -v2c -c supercommunity x.x.x.x .
iso. = INTEGER: 6
iso. = INTEGER: 6
iso. = INTEGER: 6
iso. = INTEGER: 6

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

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

c-po added a comment.EditedOct 21 2018, 12:19 PM

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

vyos@vyos:~$ vtysh -c "configure terminal" -c "agentx"
pasik added a subscriber: pasik.Nov 4 2018, 11:21 AM

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.

c-po added a comment.Jan 2 2019, 7:16 AM

@MrFunken IPv6 is handled via T366.

This task is resolved

c-po closed this task as Resolved.Jan 2 2019, 7:17 AM