Request sent for .1.3.6.1.2.1.25.2.3.1.7.1 causes:

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
13125 root      25   0 25216 6428 2592 R 99.8  0.6   1:44.90 snmpd

The gdb trace when snmpd is locked in this condition is below:

#0  0x0012c7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x0049bcdc in __close_nocancel () from /lib/tls/libc.so.6
#2  0x00441864 in _IO_file_close_internal () from /lib/tls/libc.so.6
#3  0x0043f93b in _IO_new_file_close_it () from /lib/tls/libc.so.6
#4  0x00436362 in fclose@@GLIBC_2.1 () from /lib/tls/libc.so.6
#5  0x00b5742b in Init_HR_FileSys () from /usr/lib/libnetsnmpmibs.so.5
#6  0x00b51e67 in Init_HR_Store () from /usr/lib/libnetsnmpmibs.so.5
#7  0x00b51f56 in header_hrstoreEntry () from
/usr/lib/libnetsnmpmibs.so.5
#8  0x00b52606 in var_hrstore () from /usr/lib/libnetsnmpmibs.so.5
#9  0x00e573a7 in netsnmp_old_api_helper () from
/usr/lib/libnetsnmphelpers.so.5
#10 0x0017f642 in netsnmp_call_next_handler () from
/usr/lib/libnetsnmpagent.so.5
#11 0x00e5315a in netsnmp_bulk_to_next_helper () from
/usr/lib/libnetsnmphelpers.so.5
#12 0x0017f3a0 in netsnmp_call_handlers () from
/usr/lib/libnetsnmpagent.so.5
#13 0x00174876 in handle_var_requests () from
/usr/lib/libnetsnmpagent.so.5
#14 0x00175498 in handle_pdu () from /usr/lib/libnetsnmpagent.so.5
#15 0x00176436 in netsnmp_handle_request () from
/usr/lib/libnetsnmpagent.so.5
#16 0x001769e4 in handle_snmp_packet () from
/usr/lib/libnetsnmpagent.so.5
#17 0x008b97b1 in snmpv3_make_report () from /usr/lib/libnetsnmp.so.5
#18 0x008bac94 in _sess_read () from /usr/lib/libnetsnmp.so.5
#19 0x008bb6f8 in snmp_sess_read () from /usr/lib/libnetsnmp.so.5
#20 0x008bb746 in snmp_read () from /usr/lib/libnetsnmp.so.5
#21 0x00d47512 in main () from /usr/sbin/snmpd

-----Original Message-----
From: Robert Story [mailto:[EMAIL PROTECTED] 
Sent: 13 October 2005 23:32
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: snmpd 100% cpu usage

On Thu, 13 Oct 2005 17:36:05 +0100 [EMAIL PROTECTED] wrote:
WN> I've run into a situation where I have  snmpd utilising 99.9% of my
CPU
WN> continually and failing to service any snmp requests.  Running
strace on
WN> the process I get the following:
WN> 
WN> open("/etc/mtab", O_RDONLY)             = 15
WN> close(15)                               = 0
WN> open("/etc/mtab", O_RDONLY)             = 15
WN> close(15)                               = 0
WN> open("/etc/mtab", O_RDONLY)             = 15
WN> close(15)                               = 0
WN> open("/etc/mtab", O_RDONLY)             = 15
WN> close(15)                               = 0
WN> 
WN> ....... continuous, whether snmp requests are being sent or not.

Does the agent process any requests? Anything interesting in snmpd.log?
ANy
chance this is a 64 bit machine?

-- 
NOTE: messages sent directly to me, instead of the lists, will be
deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to