Ad Widget

Collapse

How to trigger action if trap received in last 15 minutes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • user4589
    Junior Member
    • Sep 2015
    • 4

    #1

    How to trigger action if trap received in last 15 minutes

    I want to trigger an action a maximum of every 15 minutes if I receive a new trap from a device

    So I have a trigger similar to this example:
    Expression: {Template SNMP traps:snmptrap["cpqRackPowerSubsystem(NotRedundant|LineVoltagePro blem|OverloadCondition)"].str("LineVoltageProblem")}=1&{Template SNMP traps:snmptrap["cpqRackPowerSubsystem(NotRedundant|LineVoltagePro blem|OverloadCondition)"].nodata(15m)}=0

    My problem is that if I were to receive a trap every 5 minutes, then the trigger would only fire once, because the nodata(15m) is never false to reset the trigger. And I want it to fire every 15 minutes, if there is a new trap.

    I tried "and"ing {TRIGGER.VALUE}=0 with the expression, but it toggles from true to false every 30 seconds.

    Any suggestions?
  • evertonco
    Member
    • Aug 2014
    • 75

    #2
    I believe you can do this by configuring your action "step duration" to 900 seconds and step "to" set to 0 seconds (infinitely).

    Comment

    • user4589
      Junior Member
      • Sep 2015
      • 4

      #3
      A most excellent idea. Thank you. That works.

      One note...values such as {ITEM.VALUE1} do not update. But if you reference items directly they will update. For instance:
      {Template SNMP traps:snmptrap["cpqRackPowerSubsystem(NotRedundant|LineVoltag ePro blem|OverloadCondition)"].last()}
      will show you the most recent trap, but {ITEM.VALUE1} will show the item that initially caused the trigger.

      Comment

      • evertonco
        Member
        • Aug 2014
        • 75

        #4
        Great.

        About item macro, this is expected behavior. In most case, you want to know what value of item that fires the trigger. Anyway this is a little bit confusing. Good to know.

        Comment

        Working...