This is a discussion on RE: PROBLEM: snmpd not responding (request queued) within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============0622365034== content-class: urn:content-classes:message Content-Type: multipart/alternative; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--===============0622365034== content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C76A54.F510214C" This is a multi-part message in MIME format. ------_=_NextPart_001_01C76A54.F510214C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Maybe there should be a timeout for a state where (netsnmp_processing_set !=3D NULL). =20 Erez. _____ =20 From: Makavy, Erez (Erez)=20 Sent: Monday, March 19, 2007 8:05 PM To: net-snmp-users@lists.sourceforge.net Subject: PROBLEM: snmpd not responding (request queued) Hi, =20 Problem: ------------- Sometimes the snmpd stops responding to any requests. Only a restart of the snmpd helps. =20 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 =3D 0x1010aa78 --- =20 =20 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. =20 After a short while the master agent stops responding. (I query the sysUpTime). =20 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). =20 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. =20 Thanks, Erez. =20 ------_=_NextPart_001_01C76A54.F510214C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.2900.2963" name=3DGENERATOR></HEAD> <BODY> <DIV><FONT face=3DArial color=3D#008000 size=3D2><SPAN = class=3D252592818-19032007>Maybe=20 there should be a timeout for a state where (netsnmp_processing_set !=3D = NULL).</SPAN></FONT></DIV> <DIV><FONT face=3DArial color=3D#008000 size=3D2></FONT> </DIV> <DIV><SPAN class=3D252592818-19032007><FONT face=3DArial color=3D#008000 = size=3D2>Erez.</FONT></SPAN></DIV><BR> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft> <HR tabIndex=3D-1> <FONT face=3DTahoma size=3D2><B>From:</B> Makavy, Erez (Erez) = <BR><B>Sent:</B>=20 Monday, March 19, 2007 8:05 PM<BR><B>To:</B>=20 net-snmp-users@lists.sourceforge.net<BR><B>Subject:</B> PROBLEM: snmpd = not=20 responding (request queued)<BR></FONT><BR></DIV> <DIV></DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial=20 size=3D2>Hi,</FONT></SPAN></DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial=20 size=3D2>Problem:</FONT></SPAN></DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial=20 size=3D2>-------------</FONT></SPAN></DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial = size=3D2>Sometimes the snmpd=20 stops responding to any requests.</FONT></SPAN></DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial size=3D2>Only a = restart of=20 the snmpd helps.</FONT></SPAN></DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial=20 size=3D2>Analysis:</FONT></SPAN></DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial=20 size=3D2>--------------</FONT></SPAN></DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial size=3D2>snmpd = logs shows=20 this message for every request:</FONT></SPAN></DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial=20 size=3D2>----</FONT></SPAN></DIV> <DIV><SPAN class=3D856233317-19032007><FONT face=3DArial size=3D2>trace: = netsnmp_handle_request(): snmp_agent.c, 3020:<BR>snmp_agent: request = queued=20 while processing set, asp =3D 0x1010aa78<BR>---</DIV></FONT></SPAN> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D856233317-19032007>Reproducing the=20 problem:</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D856233317-19032007>-----------------------------------</SPAN></FO= NT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D856233317-19032007>- I = got a sub-agent=20 which imlements a leaf.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D856233317-19032007>- I = have a script=20 setting the leaf's value each second in a loop.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D856233317-19032007>- I = got another=20 scripts which kills the sub-agent and restarts is every ~0.2-0.6=20 sec.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D856233317-19032007></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D856233317-19032007>After = a short while=20 the master agent stops responding. (I query the = sysUpTime).</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D856233317-19032007></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D856233317-19032007>Stuff = that might=20 help:</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D856233317-19032007>-----------------------------</SPAN></FONT></D= IV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D856233317-19032007>- My = sub-agent's=20 implementation of the mentioned leaf includes creating a thread = (ofcourse that=20 created thread does not do any snmp related stuff).</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D856233317-19032007></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D856233317-19032007>Question:</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D856233317-19032007>--------------</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D856233317-19032007>I'm = trying to look=20 at the code and see how the netsnmp_processing_set flag gets=20 set,</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D856233317-19032007>and = see how it might=20 be fixed.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D856233317-19032007>I'd = appreciate some=20 help with this.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D856233317-19032007></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D856233317-19032007>Thanks,</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D856233317-19032007>Erez.</SPAN></FONT></DIV> <DIV> </DIV></BODY></HTML> ------_=_NextPart_001_01C76A54.F510214C-- --===============0622365034== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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?p...rge&CID=DEVDEV --===============0622365034== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users --===============0622365034==-- |