Hi,

I have scanned the mailing archive and read all the manpages regarding
net-snmp without any success on finding any information regarding how to
configure informs for snmpv3.
I would like to create a inform for snmpv3 on the following events linkup,
linkdown, coldstart and warmstart. From the manpages I have managed to
configure the following

###############################################################################
#
#  AGENT BEHAVIOUR
#
#  Listen for connections from the local system only
agentAddress  udp:127.0.0.1:161

###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rwuser: a SNMPv3 read-write user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rwuser  my_userrw

# rouser: a SNMPv3 read-only user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rouser  my_userro

# rouser: a SNMPv3 read-only user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rouser  my_mon_user

###############################################################################
#
#  ACTIVE MONITORING
#
#
#  Event MIB - automatically generate alerts
#
iquerySecName   my_mon_user
agentSecName   my_mon_user

# generate traps on linkUp/Down
linkUpDownNotifications  yes

###############################################################################

I have created all three users my_userrw, my_userro and my_mon_user and all
these users can run snmpwalk or snmpget so I
guess that I have managed to set them up correctly.

When it comes to my snmptrapd I have the following configuration file
snmptrapd.conf

createUser my_mon_user MD5 pass1 DES pass2
snmpTrapdAddr udp:127.0.0.1:162
authuser log my_mon_user

I have verified snmptrapd by running the following command

./snmpinform -v 3 -u my_mon_user -a MD5 -A pass1 -x DES -X pass2 -l
authPriv localhost 42 linkDown.0

which will result in the following output from the snmptrapd

2013-02-13 10:50:29 localhost [UDP: [127.0.0.1]:39612->[127.0.0.1]:162]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (42) 0:00:00.42
SNMPv2-MIB::snmpTrapOID.0
= OID: IF-MIB::linkDown.0

But I never get any traps from the snmpd. I try to trigger the linkDown by
running sudo ifconfig eth0 down but without any success.
What is it that I am missing?

/Mans
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
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