Hello Thomas,

Am 04.01.2006 um 22:01 Uhr haben Sie geschrieben:
> [EMAIL PROTECTED] wrote:
> > I can't see any traps in my snmptrapd.log and after a few
 >> minutes. I got a "segfault"...
> 
> What process is segfaulting: snmpd or snmptrapd? If it's
> reproducible,  please run it under gdb and get a backtrace
> (type "bt").

The snmpd is segfaulting.

It is possible, that I have made some mistakes compiling
net-snmp-5.3 for 64 BIT???

Are the Options for compiling 64bit OK?

<code>
./configure --prefix=/opt/net-snmp-5.3 \
        --with-sys-contact="[EMAIL PROTECTED]" \
        --with-perl-modules \
        --with-mib-modules="mibII mibII/mta_sendmail host
ucd-snmp/pass_persist misc/ipfwacc smux ucd-snmp/diskio
disman/event-mib" \
        --with-defaults \
        --enable-shared \
        --disable-static \
        --without-root-access \
        --enable-ucd-snmp-compatibility \
        --with-persistent-directory=/opt/net-snmp-5.3/persistent \
        --with-cflags="-Wall -fno-strict-aliasing" \
        --with-default-snmp-version="2"
</code>

When I use this row in my snmpd.conf, I got the segfault after 
a few minutes.

monitor -u pl-combots -o sysUpTime.0 -o hrSWRunName \
"high process Memory" hrSWRunPerfMem > 10

Without this "monitor", I didn't get the segfault!

After restarting snmpd, I see many incoming traps.
But after 10 Minutes, there aren't any traps in my logs.

I have test it, with "proc portmap 1 1". I killed portmap and the 
prErrorFlag is set to "1".
The directive "defaultMonitors yes" should do this and must send 
a trap after 10 Minutes again?!

Is my snmpd.conf correct?

The next step is, I make the gdb backtrace for the problem,
but I can't do this today:(

On my Notebook is SUSE Prof. 10.0 installed, net-snmp-5.2.1
has activated "disman/event-mib". I try this Version today,
but in future I need 5.3 for SLES9 64bit...

<code>
rocommunity pl-combots
trapcommunity pl-combots

# Sends Traps by invalid access
authtrapenable 1

disk /boot 85%
disk / 85%
disk /data 85%
disk /gsx 85%

syslocation Lamp4

proc xinetd 1 1
proc smbd 30 1
proc portmap 1 1

#exec .1.3.6.1.2.1.1.5.0 MySysName /root/perl/test.pl

# DISMAN/event.mib
agentSecName public
iquerySecName public
rouser public

defaultMonitors yes
linkUpDownNotifications yes

#notificationEvent MEMEVENT system
#monitor -u pl-combots -o sysUpTime.0 -o hrSWRunName "high process
Memory" hrSWRunPerfMem > 10


trap2sink 10.17.1.124
</code>


Thanks && greetings


André
Mit freundlichen GrĂ¼ssen

Andre Heine



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to