On Wed, 22 Jun 2005 09:45:54 -0500 [EMAIL PROTECTED] wrote:
EYC> I customized ifTable subagent from netsnmp/agent/mibGroup/if-mib for our
EYC> switch port interfaces. [...]
EYC> Okay case: after ifTable_cache_load(), it goes through from pre_request to
EYC> post_request() for all of the ifTable rows.
I hope you know what you are doing, and understand the implications of the
changes you've made, especially if you are also using ifXTable.
EYC> Broken case: after ifTable_cache_load(), it only goes through from
EYC> pre_request to post_request for one row, then it will call _cache_load
EYC> again.
What do you have your cache timeout set to? Try increasing it.
EYC> That causes"Timeout: No Response from 10.0.0.1". Once that happens,
EYC> the subagent will lose response to any snmpwalk request, although the
EYC> subagnet is not died, it's just looping at agent_check_and_process().
EYC> [...]
EYC> The problem happens when I modified agent_check_and_process() to check for
EYC> received characters on the named pipe, to determine if new trap(s) have
EYC> been logged.
Why did you modify agent_check_and_process(), instead of simply registering a
handler for the pipe and letting the library take care of calling your handler
when data comes in?
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
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