Re: Can We place Traps as part of Tables
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 02/11/06, santhosh <[email protected]> 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=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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