On Tue, Aug 31, 2004 at 11:48:16AM -0400, [EMAIL PROTECTED] mentioned:
> I could not reproduce the problem with net-snmp-5.1.2, using
> an "snmpd.conf" containing only these two lines:
> 
> exec / .1.3.6.1.4.1.2021.100 disk1 /usr/local/bin/diskused /
> rwcommunity public
> 
> From the information you've provided (thank you!),
> it seems to me that the config reading process is referring to
> data that is not initialized.

 It does seem that way. I thought "Hmm, maybe there is some dodgy
non-printable data in the config. I've trimmed it down to:

com2sec notConfigUser  82.195.128.0/25 public$
com2sec notConfigUser  82.195.128.250/32 public$
com2sec notConfigUser  82.195.129.220/32 public$
group   notConfigGroup v1           notConfigUser$
group   notConfigGroup v2c           notConfigUser$
view    systemview     included      system$
view    systemview     included      .1$
access  notConfigGroup ""      any       noauth    exact  systemview none
none$
syslocation Dublin$
syscontact Root <[EMAIL PROTECTED]>$
$
$
exec .1.3.6.1.4.1.2021.51 memfree  /usr/local/bin/memfree$
exec .1.3.6.1.4.1.2021.100 disk1 /usr/local/bin/diskused /$

 The '$' are there, as this is a copy & paste from Vim, with "set list"
enabled, so that it prints $ where there is a new line (or marks any other
non-printable characters).

 I kept playing with it, and changed:

exec .1.3.6.1.4.1.2021.100 disk1 /usr/local/bin/diskused /

 to

exec .1.3.6.1.4.1.2021.52 disk1 /usr/local/bin/diskused /

 And it didn't segfault. I have now entered the twilight zone. I am
backing away from snmpd, and pretending that it worked all along. (Unless
you have some ideas for specific debugging - I had a look at the code and
was suitably scared.

John


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to