Hi Wes,
Thanks for the help.
After attaching the strace I could see both snmpd and sub-agent got hung at
a point when sub-agent was sending a trap.
There were no snmpget/walk requests when this situation occurred.
//// snmpd //////////
strace -p 7886
Process 7886 attached - interrupt to quit
send(10, "\1\22\0\0\7\0\0\0\0\0\0\0~\224\337fl\3\0\0J\323e\0\0\0"..., 896, 0
////sub-agent/////
strace -p 7946
Process 7946 attached - interrupt to quit
send(16, "\1\f\0\0\7\0\0\0\0\0\0\0\346\224\337fd\3\0\0C\0\0\0\4\2"..., 888,
0
/* After killing the snmpd i could see the sub-agent was unable to send a
trap
) = -1 ECONNRESET (Connection reset by peer)
time(NULL) = 1262554158
open("/etc/localtime", O_RDONLY) = -1 ENOENT (No such file or
directory)
send(11, "<27>Jan 3 21:29:18 hpiSubagent["..., 102, MSG_NOSIGNAL) = 102
write(2, "snmpd: send_trap: Failure in sen"..., 63) = 63
The subagent will send traps when there are any events but after a while
(maybe a few hours or few days), snmpd starts becoming not responsive
because of the hang.
Please let me know if there's any possibility for the process to hang while
sending a trap??
Thanks & Regards,
Eswar
>>>>> On Mon, 12 Sep 2011 18:35:13 +0530, ESWAR RAO <[email protected]>
> said:
>
> ER> Please let me know how to proceed in debugging this issue in
> ER> net-snmp?
>
> This page may help you get started with a debugger:
>
> http://www.net-snmp.org/wiki/index.php/Debugger
>
> For gdb, you'll want to run 'gdb -p PID' where PID is the process ID.
> That'd let you know what the agent is in the middle of doing hopefully.
> --
> Wes Hardaker
> Please mail all replies to [email protected]
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders