Re: snmpd droped if library pthread linked

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
   [ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]


On 1 March 2011 10:00,  <[email protected]> wrote:
> The snmpd dropped after first request and no response received.
> Here my print statements of the snmpd. If i do not link the pthread library it works fine.
>
> Here is my request:
> snmpget -v2C -c public 192.168.10.71 sysLocation.0
> Timeout: No Response from 192.168.10.71.
>
> snmpd print statements:
> snmpd -f -Le -d
> Initializing networkData - get_network_data retval 0
> initialize_table_moduleParamTable
> initialize_table_channelParamTable
> initialize_table_globalChannelDataTable
> initialize_table_deviceDataTable
> NET-SNMP version 5.3.3
>
> Received 43 bytes from UDP: [192.168.10.163]:50115->[192.168.10.71]
> 0000: 30 29 02 01  01 04 06 70  75 62 6C 69  63 A0 1C 02    0).....public...
> 0016: 04 2A 22 0B  C0 02 01 00  02 01 00 30  0E 30 0C 06    .*"........0.0..
> 0032: 08 2B 06 01  02 01 01 06  00 05 00                    .+.........
>
> Received SNMP packet(s) from UDP: [192.168.10.163]:50115->[192.168.10.71]
>  GET message
>    -- SNMPv2-MIB::sysLocation.0
>
> Norman

OK - so the agent is quitting immediately it receives a request.
The only way to track this down is probably to run the agent
under a debugger, and generate a backtrace to see exactly
where it is crashing.

The Wiki page
   http://www.net-snmp.org/wiki/index.php/Debugger
       has some guidance about doing this.


Note that running multiple threads within an agent is not something
that any of the core developers have really tried to do,
As long as all of the SNMP-related activity is confined within a
single thread, this *should* work,   but we're seeing reports of
problems with this - you may be being hit by the same problem.

Dave

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.