Although I don't know the exact cause of the problem,
I got 2 solutions I can apply on my netsnmp code to prevent the manster
agent from getting stuck:
 
1) Change the code so that netsnmp_processing_set is always NULL.
    (suffer the consequesnces, which might not be relevant to my usage
of SNMP, for instance I don't support rollback)
 
2) write a timer mechanism for the netsnmp_delegated_list to extract
entries which are X seconds old.
 
 
What do you think? which would be safer?
 
thanks,
Erez

  _____  

From: Makavy, Erez (Erez) 
Sent: Monday, March 19, 2007 8:30 PM
To: '[email protected]'
Cc: Makavy, Erez (Erez)
Subject: RE: PROBLEM: snmpd not responding (request queued)


Maybe there should be a timeout for a state where
(netsnmp_processing_set != NULL).
 
Erez.

  _____  

From: Makavy, Erez (Erez) 
Sent: Monday, March 19, 2007 8:05 PM
To: [email protected]
Subject: PROBLEM: snmpd not responding (request queued)


Hi,
 
Problem:
-------------
Sometimes the snmpd stops responding to any requests.
Only a restart of the snmpd helps.
 
Analysis:
--------------
snmpd logs shows this message for every request:
----
trace: netsnmp_handle_request(): snmp_agent.c, 3020:
snmp_agent: request queued while processing set, asp = 0x1010aa78
---
 
 
Reproducing the problem:
-----------------------------------
- I got a sub-agent which imlements a leaf.
- I have a script setting the leaf's value each second in a loop.
- I got another scripts which kills the sub-agent and restarts is every
~0.2-0.6 sec.
 
After a short while the master agent stops responding. (I query the
sysUpTime).
 
Stuff that might help:
-----------------------------
- My sub-agent's implementation of the mentioned leaf includes creating
a thread (ofcourse that created thread does not do any snmp related
stuff).
 
Question:
--------------
I'm trying to look at the code and see how the netsnmp_processing_set
flag gets set,
and see how it might be fixed.
I'd appreciate some help with this.
 
Thanks,
Erez.
 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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