Re: Can We place Traps as part of Tables

This is a discussion on Re: Can We place Traps as part of Tables within the SNMP Users forums, part of the Networking and Network Related category; On 02/11/06, santhosh <santhosh@rtsindia.com> wrote: > (.1.3.6.1.4.1.17887.7....


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-02-2006
Dave Shield
 
Posts: n/a
Default Re: Can We place Traps as part of Tables

On 02/11/06, santhosh <santhosh@rtsindia.com> wrote:
> (.1.3.6.1.4.1.17887.7.6.1.2.1) RTS-MIB::Pair1Local.1 = INTEGER: 0
> (.1.3.6.1.4.1.17887.7.6.1.2.2) RTS-MIB::Pair1Local.2 = INTEGER: 0
> (.1.3.6.1.4.1.17887.7.6.1.2.3) RTS-MIB::Pair1Local.2 = INTEGER: 0
> (.1.3.6.1.4.1.17887.7.6.1.2.4) RTS-MIB::Pair1Local.2 = INTEGER: 0
>
>
> > What is the condition that should trigger a trap?
> > What are the OID(s) that we should be looking at, and

>
> We need to trigger a Trap when either "1" or "2" is loaded in the above
> Interger field


OK - try the following:

In /var/net-snmp/snmpd.conf:
createUser internal MD5 "some password"

In /usr/local/share/snmp/snmpd.conf: (or wherever your snmpd.conf file is):
trap2sink {monitorHost} public
rouser internal
monitor -u internal "inSync" .1.3.6.1.4.1.17887.7.6.1.2 == 1
monitor -u internal "outSync" .1.3.6.1.4.1.17887.7.6.1.2 == 2

That should generate a trap whenever any of the RTS-MIB::Pair1Local
objects takes the value 1 or 2

If you need to cover the other link values as well (i.e. Pair2Local, and
Pair{1,2}Remote), then try:
monitor -u internal "inSync" .1.3.6.1.4.1.17887.7.6.1 == 1
monitor -u internal "outSync" .1.3.6.1.4.1.17887.7.6.1 == 2


Particularly if you can tweak the MIB implementation to drop the
(unnecessary) .1.3.6.1.4.1.17887.7.6.1.1.N index values.
These shouldn't really be accessible anyway, and simply get in the way.

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
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 02:46 PM.


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