On Sunday 24 June 2007 22:04:16 Juuso Alasuutari wrote:
> On Sunday 24 June 2007 15:14:01 Thomas Anders wrote:
> > Would you mind building net-snmp 5.4.1.pre3 from source, compile the
> > test program against it and re-run your test?
>
> Not at all. I built and installed the prerelease with
> `./configure --prefix=/usr && make && make install`. Now snmpd refuses to
> reply to SNMPv1 and SNMPv2c requests even though I made SNMPv2c the default
> during ./configure:
>
> # snmpwalk -On -v 2c -c public 127.0.0.1
> Timeout: No Response from 127.0.0.1
>
> SNMPv3 would apparently work if I would configure snmpd properly, but
> that's not what I'm after right now (we use SNMPv2c at work):
>
> # snmpwalk -On -v 3 -c public 127.0.0.1
> snmpwalk: No securityName specified
>
> I googled with the error messages I got and fiddled with snmpd.conf for a
> while, but to no avail. I haven't gathered much knowledge of the inner
> workings of snmpd yet, so I may well be missing something obvious here.

I got snmpd 5.4.1.pre3 in a semi-working condition, and now it kindly answers 
to SNMPv2c requests. But as soon as I request the OID for 'exec 
truth /bin/true', a simple test line in my snmpd.conf, it freezes, starts 
eating 100 % CPU, and refuses to die without `kill -9`.

Here's the output. There is a few seconds' delay before the timeout error 
message:
# snmpwalk -On -v 2c -c public localhost .1.3.6.1.4.1.2021.8
.1.3.6.1.4.1.2021.8.1.1.1 = INTEGER: 1
.1.3.6.1.4.1.2021.8.1.2.1 = STRING: truth
.1.3.6.1.4.1.2021.8.1.3.1 = STRING: /bin/true
.1.3.6.1.4.1.2021.8.1.100.1 = INTEGER: 0
Timeout: No Response from localhost

This appears in syslog when the freeze happens:
Jun 25 14:08:24 thinker snmpd[14132]: no storage for string

Here's my snmpd.conf:
rocommunity public
com2sec paranoid  default         public
com2sec readonly  default         public
com2sec readwrite default         private
group MyROSystem v1        paranoid
group MyROSystem v2c       paranoid
group MyROSystem usm       paranoid
group MyROGroup v1         readonly
group MyROGroup v2c        readonly
group MyROGroup usm        readonly
group MyRWGroup v1         readwrite
group MyRWGroup v2c        readwrite
group MyRWGroup usm        readwrite
view all    included  .1                               80
view system included  .iso.org.dod.internet.mgmt.mib-2.system
access MyROSystem ""     any       noauth    exact  system none   none
access MyROGroup ""      any       noauth    exact  all    none   none
access MyRWGroup ""      any       noauth    exact  all    all    none
syslocation Unknown (configure /etc/snmp/snmpd.local.conf)
syscontact Root <[EMAIL PROTECTED]> (configure /etc/snmp/snmpd.local.conf)
exec truth /bin/true

I tried backtracing it with gdb, but whenever snmpd was attached to gdb it 
stopped answering to any requests until it was detached again, so no luck 
there. I'll be glad to debug this if someone tells me how.

Thanks,
Juuso

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to