cbreaker Tux's lil' helper
Joined: 05 Feb 2003 Posts: 105 Location: Pawtucket, RI
|
Posted: Wed Mar 12, 2003 8:47 pm Post subject: net-snmpd Segmentation fault |
|
|
Okay I've been pulling my hair out for a long time now to no avail.
Both the net-snmp and ucd-snmp packages segfault as soon as they run.
There's no output to the log. It generates a zero byte file.
If I run: /usr/sbin/snmpd -f, I see "Segmentation Fault" and it terminates.
I read somewhere that the line "disk / 10000" can cause a seg fault on some systems, but I removed that line and it did the same thing.
I have another Gentoo box with the same ebuild/version of net-snmp installed and it works fine. Actually, I just copied the snmpd.conf file from it.
Here's my snmpd.conf file:
Code: | com2sec local localhost 12345
com2sec lan 192.168.0.0/16 12345
com2sec public any public
group LocalGroup v1 local
group LocalGroup v2c local
group LocalGroup usm local
group LANGroup v1 lan
group LANGroup v2c lan
group LANGroup usm lan
group PublicGroup v1 public
group PublicGroup v2c public
group PublicGroup usm public
view all included .1 80
access LocalGroup "" any noauth exact all all none
access LANGroup "" any noauth exact all all none
access public "" any noauth exact all none none
syslocation Pawtucket, RI
syscontact Me <Me@somecompany.com>
systype Linux
proc mountd
proc ntalkd 4
proc sendmail 10 1
exec echotest /bin/echo hello world
disk / 10000
load 12 14 14 |
Here's the last few lines from the log if I turn on debug output (it's empty if I don't use the debug switch):
Code: | trace: netsnmp_ds_set_boolean(): default_store.c, 67
netsnmp_ds_set_boolean: Setting 0:26 = 1/True
trace: snmp_call_callbacks(): callback.c, 99
callback: START calling callbacks for maj=0 min=3
trace: snmp_call_callbacks(): callback.c, 107
callback: calling a callback for maj=0 min=3 |
Maybe there's some other configuration file I'm supposed to edit and I forgot, I don't know. I need snmp running on the machine and if I have to completely blow it away and install Gentoo or Debian just to get SNMP then I guess that's what I'll have to do.. somthing that I've only had to do on Windows machines. |
|