linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ELDK4.0 net-snmp can not work with trapsink
@ 2007-01-02 13:33 tran vanle
  2007-01-02 19:43 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: tran vanle @ 2007-01-02 13:33 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 2486 bytes --]

Hi all
I use net-snmp package in ELDK4.0 with board TQM8xxL .
I config it 
    ./configure \
        --host=$RPM_ARCH-linux                          \
        --enable-static --enable-shared                 \
        --with-cflags="$RPM_OPT_FLAGS -lcrypto"         \
        --with-ldflags="$LDFLAGS"                       \
        --with-sys-location="Unknown"                   \
        --with-logfile="/var/log/snmpd.log"             \
        --with-persistent-directory="/var/net-snmp"     \
        --with-endianness=$endianess                    \
        --with-default-snmp-version="2"                 \

        --with-mib-modules="host agentx smux "\

%if %{tcp_wrappers}
        --with-libwrap=%{_libdir}                       \
%endif
        --sysconfdir=%{_sysconfdir}                     \
        --enable-ucd-snmp-compatibility                 \
        --with-openssl                                  \
        --with-pic                                      \
        --with-sys-contact="root@localhost"

If I run snmpd with basic config file in /etc/snmp/snmpd.conf it run ok
But when I want to use trapsink , I add these line to /etc/snmp/snmpd.conf 
////////////////////////////////////
        #   arguments: 1 | 2   (1 = yes, 2 = no)
authtrapenable 1
# trapcommunity: Default trap sink community to use
#   arguments: community-string
trapcommunity abc
# trapsink: A SNMPv1 trap receiver
#   arguments: host [community] [portnum]
trapsink 192.168.1.7
# informsink: A SNMPv2c inform (acknowledged trap) receiver
#   arguments: host [community] [portnum]
informsink 192.168.1.15
# trap2sink: A SNMPv2c trap receiver
#   arguments: host [community] [portnum]
trap2sink 192.168.1.7
///////////////////////////////////
    and run snmpd with debug I receive 
.......
......
snmp_clean_persistent:  removing old config file: /var/net-snmp/snmpd.0.conf
trace: netsnmp_send_traps(): agent_trap.c, 616:
trap: send_trap 0 0 NET-SNMP-MIB::netSnmpAgentOIDs.10trace: netsnmp_send_traps(): agent_trap.c, 618:
trap: 
trace: snmp_call_callbacks(): callback.c, 209:
callback: START calling callbacks for maj=1 min=6
trace: snmp_call_callbacks(): callback.c, 223:
callback: calling a callback for maj=1 min=6
trace: send_notifications(): notification/snmpNotifyTable.c, 95:
send_notifications: starting: pdu=8086740, vars=0
Segmentation fault

What error I had and How can I fix it?

Thanks for all


 Send instant messages to your online friends http://au.messenger.yahoo.com 

[-- Attachment #2: Type: text/html, Size: 4703 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: ELDK4.0 net-snmp can not work with trapsink
@ 2007-01-03  1:50 tran vanle
  0 siblings, 0 replies; 3+ messages in thread
From: tran vanle @ 2007-01-03  1:50 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

Hi  Wolfgang Denk

In board TQM 8xxL I use kernel 2.6.11.7 with tosati patch , so it run ok. May net-snmp require kernel 2.4 to run trapsink?

About net-snmp : Of course I use net-snmp package include in ELDK4.0 package .
this configure I read in net-snmp.spec after I run 
ppc_8xx-rpm -iv net-snmp....rpm. 
I just rebuild net-snmp package in ELDK4.0, not edit any thing.So I don't know why it has this error

Thanks for all

 Send instant messages to your online friends http://au.messenger.yahoo.com 

[-- Attachment #2: Type: text/html, Size: 561 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-03  1:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-02 13:33 ELDK4.0 net-snmp can not work with trapsink tran vanle
2007-01-02 19:43 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2007-01-03  1:50 tran vanle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).