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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|