Ad Widget

Collapse

How to config trigger raise problem when receive 2 fail value consecutive?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • huumq00731
    Junior Member
    • Feb 2020
    • 2

    #1

    How to config trigger raise problem when receive 2 fail value consecutive?

    I have an item with Update interval = 3m (minutes), Fail value: 0, True value: 1
    I want to create a trigger raise problem when receive 2 fail value consecutive, but don't care about the values that fire previous problem.
    for example:
    • at 3m Value is False: 0=> Don't raise problem here
    • at 6m Value is False: 0 => Raise problem here
    • at 9m Value is False: 0 => Don't raise problem here (because the previous value raised a problem)
    • at 12m Value is False: 0 => Raise problem here
    • at 15m Value is False: 0 =>Don't raise problem here
    • at 18m Value is True: 1 =>Don't raise problem here
    • at 21m Value is False: 0=> Don't raise problem here
    • at 24m Value is False: 0 => Raise problem here
    • at 27m Value is False: 0 => Don't raise problem here (because the previous value raised a problem)
    • at 30m Value is False: 0 => Raise problem here
    • at 33m Value is False: 0 =>Don't raise problem here (because the previous value raised a problem)
    My current trigger Expression​​​​​ is:
    {local:icmpping[example.intra.sharedom.net].sum(#2)}=0
    But it did not worked correctly:
    • at 3m Value is False: 0=> problem don't raise here
    • at 6m Value is False: 0 => problem raise here
    • at 9m Value is False: 0 => problem raise here(But i don't want)
    • at 12m Value is False: 0 => problem raise here
    • at 15m Value is False: 0 => problem raise here(But i don't want)
    • at 18m Value is True: 1 => problem don't raise here
    • at 21m Value is False: 0=> problem don't raise here
    • at 24m Value is False: 0 => problem raise here
    • at 27m Value is False: 0 => problem raise here(But i don't want)
    • at 30m Value is False: 0 => problem raise here
    • at 33m Value is False: 0 =>problem raise here(But i don't want)

    Any body help me please!
  • huumq00731
    Junior Member
    • Feb 2020
    • 2

    #2
    Originally posted by splitek
    Try this:
    Code:
    {TRIGGER.VALUE}=0 & {local:icmpping[example.intra.sharedom.net].sum(#2)}=0
    Thanks for your support! it working!
    trigger Expression:
    Code:
     
     {TRIGGER.VALUE}=0 and {local:icmpping[example.intra.sharedom.net].sum(#2)}=0
    trigger recovery Expression:
    Code:
     
     {local:icmpping[example.intra.sharedom.net].[B]last([/B][B])[/B]}=1 or ({local:icmpping[example.intra.sharedom.net].[B]last([/B][B])[/B]}=0 and {TRIGGER.VALUE}=1)

    Comment

    Working...