Re: How can i get the secific trap notification if i want to monitor

This is a discussion on Re: How can i get the secific trap notification if i want to monitor within the SNMP Users forums, part of the Networking and Network Related category; 2008/4/25 ema <xiaoliw7411@163.com>: > rwuser ema > agentSecName ema Have you got an entry ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-25-2008
Dave Shield
 
Posts: n/a
Default Re: How can i get the secific trap notification if i want to monitor

2008/4/25 ema <xiaoliw7411@163.com>:
> rwuser ema
> agentSecName ema


Have you got an entry
createUser ema ....
anywhere?

> monitor -r 30 -u ema -e ifInUcastPktsNum "eth2InUcastPkts"
> .1.3.6.1.2.1.2.2.1.11.4 2900000 3000000


You probably want to add '-I' to that line,
since you're monitoring a single instance.

What's the current value of IF-MIB::ifInUcastPkts.4 ?


> MY-TEST-MIB DEFINITIONS ::= BEGIN
> IMPORTS snmpTraps FROM SNMPv2-MIB;


You're missing the MODULE-IDENTITY clause,
but that probably doesn't matter.


> ifInUcastPktsNotif NOTIFICATION-TYPE
> STATUS current
> DESCRIPTION
> "ifInUcastPksNotif is used for testing monitor and
> notificationEvent, written by ema."
> ::= { snmpTraps 6 }


Nooooo!!!!!
You can't simply define private traps in the standard namespace.
Particularly not when this is already defined as a different trap
(egpNeighbourLoss)

If you need to define private experimental MIBs, and you
don't have your own enterprise number, please use the
space under NET-SNMP-MIB::netSnmpPlaypen


> i didn't get the notification when the eh2's ifUcastPkts exceeds the maximum
> 3000000
> is the anything i missed to get it?


Try running the agent using

snmpd -f -Le -d -Ddisman

and watch what gets logged when the threshold is exceeded.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757...un.com/javaone
_______________________________________________
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/...net-snmp-users
Reply With Quote
Reply


Thread Tools
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

vB 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 12:19 PM.


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