Ad Widget

Collapse

I need a trigger which only applies after a timeframe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rammel47
    Junior Member
    • Mar 2012
    • 3

    #1

    I need a trigger which only applies after a timeframe

    What I want is to trigger ICMP to a device.
    But I only want a trigger action if maybe the pingperformance is 0 for !!! 5 minutes !!!.
    If this event happen only for 1 minute, then there should be no trigger action.

    -----------------------------
    My latest try was:

    {triggername:icmppingsec[ ,5, , , , ].last(300,300)}=0

    -----------------------------

    Could anyone help me with this question?
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Hi,

    last() only uses one value. last(300,300) means that you are taking a single value 300 seconds in the past.

    If you want to process several values, you need to use functions that work on a period of time such as min, max, avg.

    In your case, max function should be OK:
    Code:
    {hostname:icmppingsec[ ,5, , , , ].max(300)}=0
    Regards,
    JBo

    Comment

    Working...