Ad Widget

Collapse

Trigger worked after a certain time

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • granva
    Junior Member
    • Sep 2022
    • 9

    #1

    Trigger worked after a certain time

    Hi all, how do I make the trigger work after a certain time, i.e. (if the backup channel is down for less than an hour, do not trigger. if the main channel is down for less than half an hour, do not trigger) now the expression is (last(/Template RouterOS routers/isp.stats,#1)="r-down")
  • Answer selected by granva at 15-09-2022, 06:29.
    granva
    Junior Member
    • Sep 2022
    • 9

    For example, like this:

    Code:
    count(/Template RouterOS routers/isp.stats,30m, "ne", "r-down")=0

    The meaning of the expression: it works if no values other than "r-down" are in the last 30 minutes in the corresponding data element.
    In other words: all values in the last half hour are "r-down" and no other values. (C) Kos. Thanks to Kos


    Comment

    • granva
      Junior Member
      • Sep 2022
      • 9

      #2
      For example, like this:

      Code:
      count(/Template RouterOS routers/isp.stats,30m, "ne", "r-down")=0

      The meaning of the expression: it works if no values other than "r-down" are in the last 30 minutes in the corresponding data element.
      In other words: all values in the last half hour are "r-down" and no other values. (C) Kos. Thanks to Kos


      Comment

      Working...