Ad Widget

Collapse

Resetting a trigger from a different snmp trap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Muadeeb
    Junior Member
    • Aug 2017
    • 5

    #1

    Resetting a trigger from a different snmp trap

    Probably a pretty basic thing to do, but my Google-fu is failing me. I have a device monitored via SNMP which sends a trap (which I am receiving in Zabbix) on a link failure, and a different trap on link restoration. I want the trigger to alert on link failure, and then clear on link up. I tried using
    Code:
    {Dragonwave Template:snmptrap["IF-MIB::linkDown"].regexp(IF-MIB::linkUp)}=0 or {Dragonwave Template:snmptrap["IF-MIB::linkDown"].regexp(IF-MIB::linkDown)}=1
    But that doesn't appear to work.

    I'm using v3.0.10 with the python handler to deal with the traps. And, yes, the names are resolving to OIDs.
  • Muadeeb
    Junior Member
    • Aug 2017
    • 5

    #2
    Figured out how to do it by looking at the hysteresis examples.

    ({Dragonwave Template:snmptrap["IF-MIB::linkDown"].regexp(.*)}=1 and
    {TRIGGER.VALUE}=0)
    or
    ({Dragonwave Template:snmptrap["IF-MIB::linkUp"].regexp(.*)}=0 and
    {TRIGGER.VALUE}=1)

    Thanks for the help!

    Comment

    Working...