sending traps to NNM

"[email protected]" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I am desperately seeking some help as I am really struggling, but I accept
this isn't really the remit of this list - if its more appropriate off list
replies are fine by me.

I have net-snmp installed and apparently working  e.g. snmpget returns
values from localhost.

I now want to test sending traps to a HP Openview Network Node Manager (I
am told this is what should be happening - I inherited a very very partial
OV installation and am trying to make it work with no budget and little
background. Aren't I lucky?!).

I have run snmp-config and nominated the NNM server as the receiver of
traps (snmpd.conf attached below - some of the triggers are deliberately
set to create traps at the moment for test ppurposes).

I can issue commands like 

bash-3.00# snmptrap -v 2c -c public localhost "" UCD-SNMP-MIB::ucdStart
bash-3.00# snmptrap -v 2c -c public localhost "" .1.3.6.1.4.1.2021.251.1
bash-3.00# snmptrap -v 2c -c public localhost "" ucdStart sysContact.0 s
"Dave"

- but nothing ever appears in NNM.  If I restart the snmpd daemon then an
alarm does appear then in NNM noting this - but that's is all I ever see
there.

Any pointers or other help greatefully received.  I have no idea where to
go from here :-(

cheers

ian


---

###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# 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  upstairs
# 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  "ian diddams"
###########################################################################
# 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 private
# rouser: a SNMPv3 read-only user
#   arguments:  user [noauth|auth|priv] [restriction_oid]
rouser public
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]
rocommunity public
# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]
rwcommunity private
###########################################################################
# SECTION: Trap Destinations
#
#   Here we define who the agent will send traps to.
# trapsink: A SNMPv1 trap receiver
#   arguments: host [community] [portnum]
trapsink  msnm2  162
# trap2sink: A SNMPv2c trap receiver
#   arguments: host [community] [portnum]
trap2sink  msnm2  162
# informsink: A SNMPv2c inform (acknowledged trap) receiver
#   arguments: host [community] [portnum]
informsink  msnm2  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
###########################################################################
# 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  sendmail 2 2
# 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  / 33977010
# 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  0.01 0.01 0.01
# file: Check on the size of a file.
#   Display a files size statistics.
#   If it grows to be too large, report an error about it.
#
#    file /path/to/file [maxsize_in_bytes]
#
#      if maxsize is not specified, assume only size reporting is needed.
#
#   The results are reported in the fileTable section of the UCD-SNMP-MIB
tree
file  /var/adm/messages 1024


--------------------------------------------------------------------
mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.