Duplicate traps from non-main thread in AgentX sub-agent

John Bize <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
When running an agentx sub-agent, and sending traps (v2 traps) from a
non-main thread, I frequently get duplicates sent after a few seconds. 
My code is not sending the duplicates, but using wireshark, I can
observe them on the AgentX socket.  (It doesn't matter if I use a socket
or named pipe.)

Has anyone else observed this problem?  If so, what is your workaround?

My workaround is queuing the traps in the non-main threads, and sending
them in the "agent_check_and_process loop."  I'm not keen on this
approach however; it makes the traps rather batchy.

I am running Debian 10 with snmpd v5.7.3.

John




_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.