net-snmp how to send a trap

This is a discussion on net-snmp how to send a trap within the SNMP Users forums, part of the Networking and Network Related category; hi, im new to net-snmp. this is 5.2.1 on linux. I am trying to get net-snmp ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-30-2008
cconnell_1@lycos.com
 
Posts: n/a
Default net-snmp how to send a trap

hi, im new to net-snmp. this is 5.2.1 on linux.

I am trying to get net-snmp to send a trap when a network link goes up/
down.

Question is, I dont seem to be sending any traps, even auth traps when
I login(i enabled these also)
Here is my config, after I used the setup program. I set up the
informsink trap host. When I restart snmpd I get the following: I
think the traphost is down so will look into that, but shouldnt the
traps still be sent?

18:20:41.095178 IP svr1.32795 > alarm-host.snmptrap: Inform(39)
system.sysUpTime.0=5069 S:=[|snmp]
18:20:41.320778 IP svr1.32796 > alarm-host.snmptrap: Inform(39)
system.sysUpTime.0=10 S:1=[|snmp]
18:20:41.329785 IP alarm-host > svr1: icmp 92: alarm-host udp port
snmptrap unreachable


Is there something special I need to configure and also enable link
traps? I tried to enable the option linkUpDownNotifications yes but
still nothing was sent,


################################################## #########################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
################################################## #########################
# SECTION: Monitor Various Aspects of the Running Host
#
# The following check up on various aspects of a host.

# proc: Check for processes that should be running.
# proc NAME [MAX=0] [MIN=0]
#
# NAME: the name of the process to check for. It must match
# exactly (ie, http will not find httpd processes).
# MAX: the maximum number allowed to be running. Defaults to 0.
# MIN: the minimum number to be running. Defaults to 0.
#
# The results are reported in the prTable section of the UCD-SNMP-
MIB tree
# Special Case: When the min and max numbers are both 0, it assumes
# you want a max of infinity and a min of 1.

proc cntFilter.sh 1 1

# disk: Check for disk space usage of a partition.
# The agent can check the amount of available disk space, and make
# sure it is above a set limit.
#
# disk PATH [MIN=100000]
#
# PATH: mount path to the disk in question.
# MIN: Disks with space below this value will have the Mib's
errorFlag set.
# Can be a raw byte value or a percentage followed by the %
# symbol. Default value = 100000.
#
# The results are reported in the dskTable section of the UCD-SNMP-
MIB tree

disk /export/oracle01 "10 %"

# load: Check for unreasonable load average values.
# Watch the load average levels on the machine.
#
# load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
#
# 1MAX: If the 1 minute load average is above this limit at query
# time, the errorFlag will be set.
# 5MAX: Similar, but for 5 min average.
# 15MAX: Similar, but for 15 min average.
#
# The results are reported in the laTable section of the UCD-SNMP-
MIB tree

load 5 5 5



################################################## #########################
# SECTION: System Information Setup
#
# This section defines some of the information reported in
# the "system" mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysLocation.0 variable will
make
# the agent return the "notWritable" error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: location_string

syslocation Testbed

# syscontact: The contact information for the administrator
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysContact.0 variable will
make
# the agent return the "notWritable" error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: contact_string

syscontact "Chris Brown"

################################################## #######################
# SECTION: Trap Destinations
#
# Here we define who the agent will send traps to.

# informsink: A SNMPv2c inform (acknowledged trap) receiver
# arguments: host [community] [portnum]

informsink alarm-host public 162

# trapcommunity: Default trap sink community to use
# arguments: community-string

trapcommunity public

# authtrapenable: Should we send traps when authentication failures
occur
# arguments: 1 | 2 (1 = yes, 2 = no)

authtrapenable 1


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0