Hi All,
My first post to this users forum. Thanks in advance for the help.
Problem:
"I'm unable to get traps sent to hosts added via sets to the target-mib"
Description:
I'm attempting to use net-snmp on a small embedded system to report simple
traps to a centralized server.
trap2sink entries added in snmpd.conf work fine and traps are sent w/o
problem, however the same traps are not sent to entries added via the
target-mib "targetAddr"/"targetParams".I use tcpdump locally to verify.
I usually run with "snmpd -c /etc/snmpd.conf" and use var/netsnmp/snmpd.conf
for the persistent target-mib info(both shown below). I'm pretty new to
snmp, and was wondering if is there any additional configuration/compilation
of the agent I've missed?

Again thank in advance for your time!


(General configuration info below):
-----------------------------------------------------------------------
CONFIGURE_FLAGS := --with-endianness=big \
 --disable-embedded-perl \
 --with-sys-location="unknown" \
 --with-logfile="/var/log/snmpd.log" \
 --with-persistent-directory="/var/netsnmp/" \
 --with-default-snmp-version="2" \
 --enable-as-needed \
 --enable-shared \
 --without-perl-modules \
 --build=i386 --host=arm-*-linux-gnu \
 --sysconfdir="/etc" \# snmpd -v

-----------------------------------------------------------------------

NET-SNMP version:  5.4.2
Web:               http://www.net-snmp.org/
Email:             [email protected]


-----------------------------------------------------------------------
prompt> cat /etc/snmpd.conf
trap2sink 10.2.10.5
rocommunity  public
rwcommunity  private

-----------------------------------------------------------------------
prompt>cat /var/netsnmp/snmpd.conf

# net-snmp (or ucd-snmp) persistent data file.
#
############################################################################
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
#
#          **** DO NOT EDIT THIS FILE ****
#
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
############################################################################
#
# DO NOT STORE CONFIGURATION ENTRIES HERE.
# Please save normal configuration tokens for snmpd in
SNMPCONFPATH/snmpd.conf.
# Only "createUser" tokens should be placed here by snmpd administrators.
# (Did I mention: do not edit this file?)
#

setserialno xxxxxxxx
targetAddr 11.10.2.10.135 .1.3.6.1.6.1.1 0x0a020a8700a2 1500 3
"11.10.2.10.135" 11.10.2.10.135 3 1
targetParams 11.10.2.10.135 1 2 rwSec 1 3 1

##############################################################
#
# snmpNotifyFilterTable persistent data
#
##############################################################


##############################################################
#
# ifXTable persistent data
#
ifXTable .1 14:0 18:0x $
ifXTable .2 14:0 18:0x $
ifXTable .3 14:0 18:0x $
ifXTable .4 14:0 18:0x $
ifXTable .5 14:0 18:0x $
ifXTable .6 14:0 18:0x $
ifXTable .7 14:0 18:0x $
ifXTable .8 14:0 18:0x $
ifXTable .9 14:0 18:0x $
ifXTable .10 14:0 18:0x $
##############################################################


engineBoots 4
oldEngineID 0x80001f88801394cc36477982e6

--------------------------------------------------------------------------
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to