[FROG] Snmp and agentx
Matthieu
fsm.matthieu at gmail.com
Sun Nov 22 11:31:36 UTC 2020
Hi,
It is the first time that I post on the mailing list, excuse me if it is the wrong place to ask this.
I can’t get SNMP to work with SNMP, I have followed this documentation :
http://docs.frrouting.org/en/latest/snmp.html <http://docs.frrouting.org/en/latest/snmp.html>
1. Here is my setup:
Debian GNU/Linux 9
dpkg -l | grep frr
ii frr 7.5-0~deb9 amd64 FRRouting suite of internet protocols (BGP, OSPF, IS-IS, ...)
ii frr-pythontools 7.5-0~deb9 all FRRouting suite - Python tools
ii frr-snmp 7.5-0~deb9 amd64 FRRouting suite - SNMP support
I have used the version from the repo and added frr-snmp (not compiled from source).
2. Here is my /etc/snmp/snmpd.conf:
com2sec readonly default ****
group MyROGroup v2c readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
#Distro Detection
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
dontLogTCPWrappersConnects true
# # This is the default view
view all included .1 80
# # # Remove ipRouteTable from view
view all excluded .1.3.6.1.2.1.4.21
# # # Remove ipNetToMediaTable from view
view all excluded .1.3.6.1.2.1.4.22
# # # Remove ipNetToPhysicalPhysAddress from view
view all excluded .1.3.6.1.2.1.4.35
# # Remove ipCidrRouteTable from view
view all excluded .1.3.6.1.2.1.4.24
# # # Optionally protect SNMP private/secret values
view all excluded .1.3.6.1.6.3.15
view all excluded .1.3.6.1.6.3.16
view all excluded .1.3.6.1.6.3.18
master agentx
3. Here is my /etc/snmp/zebra.conf file:
com2sec readonly default ****
group MyROGroup v1 readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
master agentx
4. I have modified this file /etc/frr/daemons in order to enable SNMP support for each daemon:
zebra_options=" -A 127.0.0.1 -s 90000000 -M snmp"
bgpd_options=" -A 127.0.0.1 -M snmp"
ospfd_options=" -A 127.0.0.1 -M snmp"
ospf6d_options=" -A ::1 -M snmp"
5. Each of the routing process have agentx enabled in the config: zebra, bgpd, ospfd, ospf6d.
But Frr is complaining in the log:
tail -f /var/log/frr/frr.log
Nov 22 12:19:12 border3 zebra[11311]: [EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
Nov 22 12:19:12 border3 ospfd[11323]: [EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
Nov 22 12:19:12 border3 bgpd[11316]: [EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
Nov 22 12:19:14 border3 ospf6d[11326]: [EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
SNMP is working fine for the global system (CPU, disk space, etc…) but not for the specific OID about routing processes.
Do you know what I am doing wrong ?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frrouting.org/pipermail/frog/attachments/20201122/9e4cbd6a/attachment.htm>
More information about the frog
mailing list