OpenWrt Forum Archive

Topic: BUG: snmpd hangs when standard OID is queried

The content of this topic has been archived on 11 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

When you query oid .1.3.6.1.2.1.25.2.3.1.7.2, the SNMP hangs.  It will eat up all the CPU and fail to respond to further queries.  The system is still ok, and a simple /etc/init.d/snmpd restart will get things back up and running.  I have replicated this on 7.09 and 0.9.  I haven't determined if other OID's will also cause the agent to hang, nor I have figured out a work around.

Would someone please confirm this bug? You can replicate it using: (change the ip and community string as needed)

'snmpget -v 1 -c public 192.168.1.1 .1.3.6.1.2.1.25.2.3.1.7.2'


Informatoin regarding the OID:
http://www.simpleweb.org/ietf/mibs/modu … onFailures

This particular index is for Real Memory:
cp8@cp8:~$ snmpwalk -v1 -c public 192.168.99.2 1.3.6.1.2.1.25.2.3.1.3
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: Real Memory

/Chris

I have a work around until this bug is fixed properly. You can add this line to /etc/snmp/snmpd.conf:

view  all  excluded  .1.3.6.1.2.1.25.2.3.1.7


/Chris

The discussion might have continued from here.