On Fri, Oct 8, 2010 at 12:44 PM, Josef Moellers <
[email protected]> wrote:

> Am 8.10.2010 schrub Bart Van Assche:
>
> > On Fri, Oct 8, 2010 at 11:50 AM, Josef Moellers
> > <[email protected] <mailto:[email protected]>>
> > wrote:
> >
> >     We've run into a classical deadlock situation:
> >
> >     An agentx subagent tries to send a reply message to the snmpd agent,
> but
> >     its socket is full, so it hangs in send(). The snmpd has timed out
> and
> >     is trying to resend the request. The socket in this direction is
> full,
> >     too. Apparently the situation has occurred because the subagent has
> been
> >     busy without responding to snmpd request which have come in in quite
> >     great numbers.
> >
> >     So now both, snmpd and our subagent, are both waiting in
> send/sendto()
> >     without being able to read from their side of the socket.
> >
> >     This may be a very rare situation, but it seems that it is not
> >     impossible.
> >
> >     Is there an official way to resolve this situation?
> >
> >
> > With which Net-SNMP version did this occur ?
>
> Version 5.4.2.1, part of SLES11-SP1
>

Are you using Unix sockets (the default) or TCP/IP for communication between
the master agent and the subagent ? I'm asking this because - at least if I
interpret the Net-SNMP 5.4 source code correctly - communication over Unix
sockets is blocking and communication over TCP/IP sockets is not. If you are
using Unix sockets, does switching to TCP/IP help ? You will have to add
something like the following in snmpd.conf:

agentXSocket tcp:localhost:705

Bart.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to