>> 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.

Thanks.

>> 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?

No.  I didn't mean to say it was the subagent thread that's hanging.
Actually, on different runs I see either the main thread or the
subagent thread hang.  OTOH, yes, I'm sure that the application that
includes the subagent thread misbehaves.


>> 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.

Knowing that helps.  Thanks.


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

Yes.  Retrieving a dozen or so OID values ever 5 seconds.


If I run the monitor that only gets system name, uptime, etc. that are
served by snmpd directly, my system never misbehaves.  If I run the
monitor that accesses data in the subagent, it misbehaves after 20 or
so requests.

-------------------------------------------------------------------------
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