Menu

#1200 Don't ping master agent unless there is no incoming traffic

closed
None
5
2012-11-09
2012-01-30
No

Pinging master agent from subagent seems unnecessary if we just received a request from master agent. In an event-based program, agentx_check_session() calls agentx_send_ping() which uses agentx_synch_response() which may hang and block the whole program. This can be critical if this is important for the program to stay responsive. This patch is a workaround for this problem if the program is monitored with SNMP and therefore receives AgentX requests on a regular basis. For each received agentX request, the alarm is postponed.

Tested on master but should work on 5.4, 5.5 and 5.7.

Discussion

  • Wes Hardaker

    Wes Hardaker - 2012-07-30

    Doesn't apply cleanly anywhere; need to figure out why...

     
  • Vincent Bernat

    Vincent Bernat - 2012-07-30

    I have rebased the patch on top of master. There was no conflict. Let me know if it works better.

     
  • Wes Hardaker

    Wes Hardaker - 2012-07-31

    Thanks for the patch! It has been applied to the 5.4.x and above code branches and the main development tree, and will appear in future releases of the Net-SNMP package.

     

Log in to post a comment.