I got more debug information of the problem in the master agent when a subagent sent traps.
I started snmpd with debug tokens as below:
snmpd -f -Le -Dsnmpd/select -Dsnmp_agent -Dtrap -Dagentx/master
In the working case, I see snmpd/select is called right after agent_session release and before agent_session create, see the debug message below:
trap: send_trap -1 -1 .1.3.6.1.4.1.8072.3.2.10trap:
trap: sending trap type=166, version=1
snmpd: send_trap: Timeout
agentx/master: send response, stat 0 (req=0x2104c5b3,trans=0x0,sess=0x7)
snmp_agent: agent_session 0x1015de90 released
snmpd/select: select( numfds=12, ..., tvp=(nil))
snmpd/select: returned, count = 1
snmpd/select: select( numfds=12, ..., tvp=(nil))
snmpd/select: returned, count = 1
snmp_agent: agent_sesion 0x1015de90 created
agentx/master: handle pdu (req=0x2104c5b4,trans=0x0,sess=0x7)
agentx/master: send response, stat 0 (req=0x2104c5b4,trans=0x0,sess=0x7)
snmp_agent: agent_session 0x1015de90 released
But in the broken case, no snmpd/select is called after agent_session release, and agent_session create is started right after agent_session release, see the debug message below:
trap: send_trap -1 -1 .1.3.6.1.4.1.8072.3.2.10trap:
trap: sending trap type=166, version=1
snmp_agent: agent_sesion 0x10077ee8 created
agentx/master: handle pdu (req=0x2104c5ba,trans=0x0,sess=0x7)
trap: send_trap -1 -1 .1.3.6.1.4.1.8072.3.2.10trap:
trap: sending trap type=166, version=1
snmpd: send_trap: Timeout
agentx/master: send response, stat 0 (req=0x2104c5ba,trans=0x0,sess=0x7)
snmp_agent: agent_session 0x10077ee8 released
snmp_agent: agent_sesion 0x10074ae0 created
agentx/master: handle pdu (req=0x2104c5bb,trans=0x0,sess=0x7)
agentx/master: send response, stat 0 (req=0x2104c5bb,trans=0x0,sess=0x7)
snmp_agent: agent_session 0x10074ae0 released
Any help from you NetSNMP experts would be greatly appreciated.
--
Emi
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
- more debug information: snmpd select() stopped working when a... Emi . Yanagi
