ports/99885: Net-snmp dies when using proxy token
Scott Walker
crimson at unspeakable.org
Fri Jul 7 14:40:25 UTC 2006
>Number: 99885
>Category: ports
>Synopsis: Net-snmp dies when using proxy token
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 07 14:40:22 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Scott Walker
>Release: 6.1-STABLE
>Organization:
N/A
>Environment:
FreeBSD cerberus.crimson.ws 6.1-STABLE FreeBSD 6.1-STABLE #0: Wed Jun 28 21:19:59 ADT 2006 root at cerberus.crimson.ws:/usr/obj/usr/src/sys/CERBERUS i386
>Description:
I'm setting up a snmp proxy so that I can get proper header info out of
the squid snmp port to properly pull the stats into cacti.
proxy -m /usr/local/etc/squid/mib.txt -v 1 -c public 127.0.0.1:3401
.1.3.6.1.4.1.3495.1
This is the proxy line I have and it works fine, accept when you
snmpwalk it
snmpwalk -c public -v1 cerberus.crimson.ws:161 .1.3.6.1.4.1.3495.1
It displays the walk of the tree, and the does this....
iso.3.6.1.4.1.3495.1.5.2.1.9.127.0.0.1 = Counter32: 0
Timeout: No Response from cerberus.crimson.ws:161
At which point snmpd on cerberus is now dead.
Running snmpd in debug mode it looks fine till it gets to the 127.0.0.1
interface (noted above)
And I see this....
trace: snmp_parse_var_op(): snmp.c, 166:
dumph_recv: Name
dumpx_recv: 06 10 2B 06 01 04 01 9B 27 01 05 02 01 09 7F 00
00 01
dumpv_recv: ObjID:
SNMPv2-SMI::enterprises.3495.1.5.2.1.9.127.0.0.1
trace: snmp_pdu_parse(): snmp_api.c, 4375:
dumph_recv: Value
trace: proxy_got_response(): ucd-snmp/proxy.c, 514:
proxy: got error response (2)
trace: proxy_got_response(): ucd-snmp/proxy.c, 517:
proxy: ignoring error response
If I run snmpwalk against the squid snmp daemon itself, It works fine.
and display the proper info.
iso.3.6.1.4.1.3495.1.5.2.1.9.127.0.0.1 = Counter32: 0
End of MIB
It looks like after walking the entire squid OID, it kills snmpd.
>How-To-Repeat:
proxy using net-snmp and then walk it. When you get to the last OID snmpd will die.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list