Hmm. I had previously tried putting the following in my snmpd.conf file:
AgentXTimeout 10 AgentXRetries 10
When I did that, nothing seemed to happen. I tried it again and took a closer look at things. Based on my snmp_log output in /var/log/messages, it appears that the different SET request modes are being made in the proper order for each request. So we're moving in the right direction.
However, for each SET request I make, it appears that the subagent handler is being called 11 times. It looks like it's being called once plus the number of retries. If I set AgentXRetries to 5, the subagent handler is called 6 times.
Am I possibly not returning the proper value from my subagent handler? Such that even though everything is ok on the first call, the master agent thinks there was a timeout and continues retrying?
Any ideas? Let me know if you need more info. I could send code snippets.
On a related topic, what's the difference/relationship between the timeout and retries values as set in the snmpd.conf file and via the netsnmp_session structure when opening a session from within code?
Thanks.
-Steve
Tommy Christensen wrote:
On Wed, 2004-12-22 at 01:46, Stephen Dzurenko wrote:
But I'm getting all sorts of odd problems. I get lots of timeout errors, no matter how large I make the "retries" and "timeout" values. Does anyone know if I should expect problems if multiple processes are sending SET requests to a subagent more-or-less simultaneously?
No, this should be OK. The master agent serializes SET requests, so the subagent(s) will only see one at a time.
By putting snmp_log calls in my subagent code, I see things like:
1. multiple RESERVE1 and RESERVE2 request modes for the same request
2. lots of "dropping bad AgentX reqest (wrong mode #)" error messages, where # is either 0 or 2
The master agent is retrying too fast and your subagent can't keep up. Try putting this in your snmpd.conf:
agentxTimeout 60
-Tommy
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users