FRR BGP + AgentX SNMP support
-
I am using pFsense 2.5.0 which has FRR with SNMP support all built in:
Module information for bgpd: Module Name Version Description libfrr 7.5 libfrr core module bgpd 7.5 bgpd daemon bgpd_snmp 7.5 bgpd AgentX SNMP module from: /usr/local/lib/frr/modules/bgpd_snmp.so pid: 19886
I have ticked the "Enable agentx support for accessing FRR Zebra data via SNMP with the net-snmp package." in the BGP section, and I have installed the net-snmp (instead of the default bsnmpd)
cat /var/etc/netsnmpd.conf | grep agentx master agentx
However I dont seem to be having the peers show up on my librenms panel for the host.
Did anyone get this to work on their end?
-
@yswery Hello. I am very interesting by this topic too. I am making upgrade to have the same configuration in observium / pfsense. Do you have some new information for you ?
-
@amassi Actually I did get this working
- Make sure you disable the default bsnmpd
- Install net-snmp (package) and configure it instead
- go Services -> SNMP (net-snmp) -> General -> Advance Options and in the advance option add
agentxperms 777 777"
See post here: https://redmine.pfsense.org/issues/11610#note-5 - In FRR, enable agentx in both global AND in BGP sections.
Restart things and confirm FRR is running all ok. to chck it works you can do:
snmpwalk -c COMMUNITYSTRING -v2c IP.IP.IP.IP BGP4-MIB::bgpPeerRemoteAs
NOTE: since FRR uses
BGP4-MIB
it means that ony IPv4 peers will show up. Have a look at the closed ticket here to implement a different MIB: https://github.com/FRRouting/frr/issues/2350 -
This post is deleted! -
@yswery thank you for your help. Now its work well.
-
redmine issue: https://redmine.pfsense.org/issues/11610