Hi all<br>I use net-snmp package in ELDK4.0 with board TQM8xxL .<br>I config it <br> ./configure \<br> --host=$RPM_ARCH-linux \<br> --enable-static --enable-shared \<br> --with-cflags="$RPM_OPT_FLAGS -lcrypto" \<br> --with-ldflags="$LDFLAGS" \<br>
--with-sys-location="Unknown" \<br> --with-logfile="/var/log/snmpd.log" \<br> --with-persistent-directory="/var/net-snmp" \<br> --with-endianness=$endianess \<br> --with-default-snmp-version="2" \<br><br> --with-mib-modules="host agentx smux "\<br><br>%if %{tcp_wrappers}<br>
--with-libwrap=%{_libdir} \<br>%endif<br> --sysconfdir=%{_sysconfdir} \<br> --enable-ucd-snmp-compatibility \<br> --with-openssl \<br>
--with-pic \<br> --with-sys-contact="root@localhost"<br><br>If I run snmpd with basic config file in /etc/snmp/snmpd.conf it run ok<br>But when I want to use trapsink , I add these line to /etc/snmp/snmpd.conf <br>////////////////////////////////////<br> # arguments: 1 | 2 (1 = yes, 2 = no)<br>authtrapenable 1<br># trapcommunity: Default trap sink community to use<br># arguments: community-string<br>trapcommunity abc<br># trapsink: A SNMPv1 trap receiver<br># arguments: host [community] [portnum]<br>trapsink 192.168.1.7<br># informsink: A SNMPv2c inform (acknowledged trap) receiver<br># arguments: host [community]
[portnum]<br>informsink 192.168.1.15<br># trap2sink: A SNMPv2c trap receiver<br># arguments: host [community] [portnum]<br>trap2sink 192.168.1.7<br>///////////////////////////////////<br> and run snmpd with debug I receive <br>.......<br>......<br>snmp_clean_persistent: removing old config file: /var/net-snmp/snmpd.0.conf<br>trace: netsnmp_send_traps(): agent_trap.c, 616:<br>trap: send_trap 0 0 NET-SNMP-MIB::netSnmpAgentOIDs.10trace: netsnmp_send_traps(): agent_trap.c, 618:<br>trap: <br>trace: snmp_call_callbacks(): callback.c, 209:<br>callback: START calling callbacks for maj=1 min=6<br>trace: snmp_call_callbacks(): callback.c, 223:<br>callback: calling a callback for maj=1 min=6<br>trace: send_notifications(): notification/snmpNotifyTable.c, 95:<br>send_notifications: starting: pdu=8086740, vars=0<br>Segmentation fault<br><br>What error I had and How can I fix it?<br><br>Thanks for all<br><br><p> Send instant messages to your
online friends http://au.messenger.yahoo.com