Re: Start a script from a OID Trap
Greg Oliver <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <1327112499.1934.16.camel@ghost> |
On Fri, 2012-01-20 at 18:17 -0200, Usuário do Sistema wrote: > Hello, I'm beginning a monitor task with traps snmp from my network > devices. I whish start a script when a kind of OID trap arrives in > the log. for exemplo follow a kind of OID trap. > > > 2012-01-19 15:31:51 192.168.2.171(via UDP: [192.168.2.171]:1024) TRAP, > SNMP v1, community public > SNMPv2-SMI::enterprises.231.7.2.9 Enterprise Specific Trap > (939) Uptime: 2:56:30.06 > SNMPv2-SMI::enterprises.231.7.2.9.2.2.1.1.1 = INTEGER: 1 > SNMPv2-SMI::enterprises.231.7.2.9.2.2.1.2.1 = Hex-STRING: 07 DC 01 13 > 0F 1C 11 00 SNMPv2-SMI::enterprises.231.7.2.9.2.2.1.3.1 = > INTEGER: 9 SNMPv2-SMI::enterprises.231.7.2.9.2.2.1.4.1 = > INTEGER: 39 SNMPv2-SMI::enterprises.231.7.2.9.2.2.1.5.1 = > INTEGER: 9 SNMPv2-SMI::enterprises.231.7.2.9.2.2.1.6.1 = > INTEGER: 0 SNMPv2-SMI::enterprises.231.7.2.9.2.2.1.7.1 = > STRING: "ErrorClass: 09; Number 39; Alarm indication signal error off > (TMS2M)" SNMPv2-SMI::enterprises.231.7.2.9.1.1.0 = INTEGER: 5 > SNMPv2-SMI::enterprises.231.7.2.9.2.2.1.8.1 = INTEGER: 1 > > > I already the script I only wish do integration it with snmptrap. > > how can I reach this ?? You can just set a traphandle for the oid in snmptrapd.conf traphandle <oid of trap> <action> > any tip is welcome > > thanks > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > 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 ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ 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