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

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/4/25 ema <[email protected]>:
> 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;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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.