-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
agentx && 15 seconds back-off window #8990
Comments
It definately looks something related to the bgp_snmp agentx library.
The period seems to be configurable with |
So it seems the reconnect period is defined by the NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL.
This DefaultStore value NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL is set to 15.
Would that be a valid workaround? To set the 'agentxPingInterval' to 1? So we have at most a roughly 1 second SNMP outage from the BGPd? Because it does not seem to work at my end..
Is this something we can configure as a parameter in FRR on the Agentx subagent config? |
I think it should be possibe to modify /etc/snmp/frr.conf file with additional line |
Yes i am running it that way on one site. But still an snmp monitoring probe could falsely find that oid down then isn't? |
Only a SNMP restart does not seem to work.
Some kludge I came up with is:
The unsafety stale monitoring window of course increases by the CACHETIME... |
This issue is stale because it has been open 180 days with no activity. Comment or remove the |
This issue will be automatically closed in the specified period unless there is further activity. |
Getting unknown command agentx in vtysh shell, agentx is not correctly configured with frr frr-test-a# conf t Already configured /etc/frr/daemons with the following parameters and also -M snmp to the parameters vtysh_enable=yes |
FRR VERSION
frr 7.5.1-0~ubuntu20.04 amd64 FRRouting suite of internet protocols (BGP, OSPF, IS-IS, ...)
~~
Copyright 1996-2005 Kunihiro Ishiguro, et al.
configured with:
'--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--enable-exampledir=/usr/share/doc/frr/examples/' '--localstatedir=/var/run/frr' '--sbindir=/usr/lib/frr' '--sysconfdir=/etc/frr' '--with-vtysh-pager=/usr/bin/pager' '--libdir=/usr/lib/x86_64-linux-gnu/frr' '--with-moduledir=/usr/lib/x86_64-linux-gnu/frr/modules' '--disable-dependency-tracking' '--enable-systemd=yes' '--enable-rpki' '--with-libpam' '--enable-doc' '--enable-doc-html' '--enable-snmp' '--enable-fpm' '--disable-protobuf' '--disable-zeromq' '--enable-ospfapi' '--enable-bgp-vnc' '--enable-multipath=256' '--enable-user=frr' '--enable-group=frr' '--enable-vty-group=frrvty' '--enable-configfile-mask=0640' '--enable-logfile-mask=0640' 'build_alias=x86_64-linux-gnu' 'PYTHON=python3'
~~
OPERATING SYSTEM VERSION
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
KERNEL VERSION
Linux app2 5.4.0-58-generic Rework time related code #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug
[ x] Did you check if this is a duplicate issue? (I see some agentx socket and path issues, but that is not related and this snmp disconnect behavior is not mentioned)
[ ] Did you test it on the latest FRRouting/frr master branch?
To Reproduce
Enable agentx
[root@app2 log]# grep snmp /etc/frr/daemons
zebra_options=" -A 127.0.0.1 -M snmp -s 90000000 --log file:/var/log/frr/zebra.log"
bgpd_options=" -A 127.0.0.1 -M snmp --log file:/var/log/frr/bgpd.log"
[root@app2 log ]#
[root@app2 log ]# grep agentx /etc/frr/frr.conf
agentx
[root@app2 log ]#
Expected behavior
Stable agentx SNMP behavior, no 15 seconds downtime
Seen behavior
SNMP agentx disconnects all the time
Running snmpd with agentx debugging reveals only a 'close'
#ExecStart=/usr/sbin/snmpd -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -f -p /run/snmpd.pid -Dagentx -Lf /var/log/snmpd.log
Questions:
The text was updated successfully, but these errors were encountered: