Ad Widget

Collapse

Trigger hysteresis

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zaven
    Junior Member
    • Oct 2014
    • 3

    #1

    Trigger hysteresis

    Hello,

    I'm trying to setup trigger with hysteresis. Trigger should change it's status to problem when it receives traps that include "...value=INTEGER: 1" or "... value=INTEGER: 2" or "...value=INTEGER: 3" strings and should change it back to OK if receive "...value=INTEGER: 5"

    I implemented mentioned logic in the following way, which failed to work. Trigger change it's state from OK to problem and back by receiving patterns from the first condition (i.e. "... value=INTEGER: 1"). It should not change it's state from problem to Ok.
    And the second problem is that it does not react on "...value=INTEGER: 5" at all.

    ({TRIGGER.VALUE}=0 and ({test:snmptrap.fallback.str(SNMPv2-SMI::enterprises.193.129.1.2.2.2.7.0 type=2 value=INTEGER: 1)}=1 or
    {test:snmptrap.fallback.str(SNMPv2-SMI::enterprises.193.129.1.2.2.2.7.0 type=2 value=INTEGER: 2)}=1 or
    {test:snmptrap.fallback.str(SNMPv2-SMI::enterprises.193.129.1.2.2.2.7.0 type=2 value=INTEGER: 3)}=1)) or ({TRIGGER.VALUE}=1 and {test:snmptrap.fallback.str(SNMPv2-SMI::enterprises.193.129.1.2.2.2.7.0 type=2 value=INTEGER: 5)}=1)

    I read from the forum that some additional brackets near each condition may help but it didn't.

    (({TRIGGER.VALUE}=0) and ({test:snmptrap.fallback.str(SNMPv2-SMI::enterprises.193.129.1.2.2.2.7.0 type=2 value=INTEGER: 1)}=1 or
    {test:snmptrap.fallback.str(SNMPv2-SMI::enterprises.193.129.1.2.2.2.7.0 type=2 value=INTEGER: 2)}=1 or
    {test:snmptrap.fallback.str(SNMPv2-SMI::enterprises.193.129.1.2.2.2.7.0 type=2 value=INTEGER: 3)}=1)) or (({TRIGGER.VALUE}=1) and ({test:snmptrap.fallback.str(SNMPv2-SMI::enterprises.193.129.1.2.2.2.7.0 type=2 value=INTEGER: 5)})=1)

    Such a filling that TRIGGER.VALUE always return 0. I tried to test expression in expression constructor and it worked fine there.
    Can you please help to understand what is the problem?


    Regards
    Zaven.
Working...