[prev in list] [next in list] [prev in thread] [next in thread]
List: net-snmp-users
Subject: RE: last call for 4.2 problems/patches
From: Jim Pickering <jpickeri () outbackinc ! com>
Date: 2000-11-30 23:52:02
[Download RAW message or body]
I see the same. Unfortunately, my sub-agent still fails to send traps. As a
test, it calls
send_easy_trap( SNMP_TRAP_ENTERPRISESPECIFIC, 3 );
after going through initialization.
Perhaps I am not configuring the build correctly? I use the following:
./configure --with-mib-modules="agentx" --without-efence
--prefix=/usr --exec-prefix=/usr --without-openssl
--with-sys-location="Unknown" --with-sys-contact="Unknown"
--with-logfile="/var/log/snmpd.log"
--with-persistent-directory="/var/ucd-snmpd" --with-libwrap --disable-shared
Any ideas?
jim
---
Jim Pickering Internet: mailto:jrp@outbackinc.com
OutBack Resource Group, Inc. Voice: 805-542-8570 ext. 19
3450 Broad Street, Suite 103 FAX: 805-541-5467
San Luis Obispo, CA 93401 WWW: http://www.outbackinc.com/
> -----Original Message-----
> From: Wes Hardaker [mailto:wjhardaker@ucdavis.edu]
> Sent: Thursday, November 30, 2000 10:29 AM
> To: Jim Pickering
> Cc: 'Dave Shield'; 'Wes Hardaker';
> 'net-snmp-users@lists.sourceforge.net'
> Subject: Re: last call for 4.2 problems/patches
>
>
> >>>>> On Mon, 27 Nov 2000 17:32:30 -0800, Jim Pickering
> <jpickeri@outbackinc.com> said:
>
> Jim> Traps seem to have the previously reported problem.
> Jim> SNMPD_CALLBACK_SEND_TRAP1 (6) and SNMPD_CALLBACK_SEND_TRAP2 (7)
> Jim> are not registered with snmp_register_callback() in callback.c.
> Jim> You can see this in the attached trap.log file beginning at lines
> Jim> 192 and 449. Consequently, when traps are sent from the
> Jim> subagent, snmp_call_callbacks() is called but
> Jim> SNMPD_CALLBACK_SEND_TRAP1 and SNMPD_CALLBACK_SEND_TRAP2 are not
> Jim> in the thecallbacks[][] table, so traps aren't sent. Is our
> Jim> subagent missing any configuration option that might cause this
> Jim> to happen?
>
> I'm really confused at your problem here... I nor Dave are able to
> reproduce this one.
>
> Can you do me a favor?
>
> 1) get the very latest CVS snapshot (see
> http://sourceforge.net/cvs/?group_id=12694 if you haven't yet)
>
> 2) ./configure --with-mib-modules="agentx examples/example"
>
> 3) make
>
> 4) cd testing
>
> 5) setenv AGENT_FLAGS="-Dcallback"
>
> 6) ./RUNTESTS -T 28 -V |& grep -i "maj=1 min=7"
> (you may want to look at the whole output too)
>
> When doing this, I see:
>
> callback: registered callback for maj=1 min=7
> callback: START calling callbacks for maj=1 min=7
> callback: calling a callback for maj=1 min=7
> callback: END calling callbacks for maj=1 min=7 (1 called)
> callback: registered callback for maj=1 min=7
> callback: START calling callbacks for maj=1 min=7
> callback: calling a callback for maj=1 min=7
> callback: END calling callbacks for maj=1 min=7 (1 called)
> callback: calling a callback for maj=1 min=7
> callback: END calling callbacks for maj=1 min=7 (1 called)
> callback: START calling callbacks for maj=1 min=7
> callback: calling a callback for maj=1 min=7
> callback: END calling callbacks for maj=1 min=7 (1 called)
> callback: registered callback for maj=1 min=7
> callback: START calling callbacks for maj=1 min=7
> callback: calling a callback for maj=1 min=7
> callback: END calling callbacks for maj=1 min=7 (1 called)
> callback: registered callback for maj=1 min=7
> callback: START calling callbacks for maj=1 min=7
> callback: calling a callback for maj=1 min=7
> callback: END calling callbacks for maj=1 min=7 (1 called)
> callback: START calling callbacks for maj=1 min=7
> callback: calling a callback for maj=1 min=7
> callback: END calling callbacks for maj=1 min=7 (1 called)
> callback: START calling callbacks for maj=1 min=7
> callback: calling a callback for maj=1 min=7
> callback: END calling callbacks for maj=1 min=7 (1 called)
> callback: START calling callbacks for maj=1 min=7
> callback: calling a callback for maj=1 min=7
> callback: END calling callbacks for maj=1 min=7 (1 called)
> callback: START calling callbacks for maj=1 min=7
> callback: calling a callback for maj=1 min=7
> callback: END calling callbacks for maj=1 min=7 (1 called)
>
> --
> Wes Hardaker
> NAI Labs
> Network Associates
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic