> From: Chris Nelson [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 07, 2008 7:48 AM


> I'm sure this is in a spec somewhere and surely knowable from the code
> but if someone can answer off the top of their head, it'd save me a
> lot of digging and I'd appreciate it.

http://www.ietf.org/rfc/rfc2257.txt?number=2257

        You may need to reference it at some point.

> I have a multi-threaded application which acts as an AgentX subagent
> for a couple of MIBs and I have monitoring programs that gather data
> via SNMP.
> 
> * When I run my text-based monitor (which opens a session and
> repeately queries the MIB), all it well.
> 
> * When I run my web-based monitor (which repeatedly runs a CGI which
> opens a sesssion, gets the data, and closes the session), my
> application hands after 20 or so requests.

        Are you sure it's the subagent hanging here?  Are all other MIB objects 
fully responsive?

> My monitors are surely talking only to snmpd so I wonder if snmpd
> opens a new session to the subagent for each incoming session/request
> or if it keeps a session open to the subagent and uses it over and
> over.  If the former, that would explain how my CGI can hang my
> application.  If the latter, I have to look elsewhere.

        AgentX is single-session by design.  The subagent opens the session 
with the master, registers the objects it will manage, then waits for and 
responds to requests from the master agent, serially.

        Are the two command generator applications polling at the same rate?


        HTH,

Mike

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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

Reply via email to