Ad Widget

Collapse

Triggers on SNMPTraps in Zabbix 2 (using perl receiver script)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jason
    Senior Member
    • Nov 2007
    • 430

    #1

    Triggers on SNMPTraps in Zabbix 2 (using perl receiver script)

    I've got the traps coming into zabbix using the perl receiver script...

    Code:
    12:59:51 2012/11/14 PDU INFO: 
    notificationtype TRAP 
    version 1 
    receivedfrom UDP: [XXX.XXX.XXX.XXX]:22252->[XXX.XXX.XXX.XXX]
    errorstatus 0 
    messageid 0 
    community public 
    transactionid 10 
    errorindex 0 
    requestid 7 
    VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (0) 0:00:00.00 
    SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.24769.100.100.100.0 
    SNMPv2-SMI::enterprises.24769.100.200.1.0 type=4 value=STRING: "Information" 
    SNMPv2-SMI::enterprises.24769.100.200.2.0 type=4 value=STRING: "I00640000:All events"
    On the above data what can the trigger be configured on? Is it just searching the whole lot as a string match or can I run it on, for example the severity, which is Information in this case?
  • Jason
    Senior Member
    • Nov 2007
    • 430

    #2
    Hi,

    I can't see a way to filter on the info in the VARBINDS section of the trap info... Is this assigned to values/macros that we can compare contents of or is the entire field just text that need to match, for example..

    enterprises.24769.100.200.1.0 type=4 value=STRING: "Information"

    Jason

    Comment

    • Jason
      Senior Member
      • Nov 2007
      • 430

      #3
      Does anyone have any information on this?

      From the documentation at http://www.zabbix.com/documentation/...types/snmptrap it says that perl is the recommended method on production systems, but information on it is sketchy... For the SNMPTT I can see that each event needs to be configured, but the perl receiver just passes the lot across.

      Therefore I can select the snmptraps for the specific application by setting the key as the snmtrap["OID for the APP"]

      However, is the information just stored in zabbix as plaintext as displayed? Surely it would be useful to pull out the status field as a severity and be able to use that as a filter?

      Comment

      Working...