Ad Widget

Collapse

Triggers- avg and min

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • s2390
    Junior Member
    • Sep 2015
    • 15

    #1

    Triggers- avg and min

    Hi

    I am trying to do a trigger for example that says "If ping packet loss is above 10% for every check in the last 5m".

    If I use .avg then it's the avg over the last 5 mins (it could go up and down between 0% and 50% for example and trigger it). I want it to be constantly above 10% readings for the last 5 mins.

    If I use .min then it only has to be one of the occurrences in the last 5 mins that is above 10%?

    I've done this but it means it is unable to show the trigger line on the graphs:
    .count(5m,10,"gt")}>=5

    Is there a better way of doing this? I feel like I'm missing the 'easy way' of what surely is a typical thing?

    Edit: now I'm thinking I've misunderstood min and .min(5m)>10 would do it. Trying it out

    Thanks
    Last edited by s2390; 24-11-2015, 14:41.
  • s2390
    Junior Member
    • Sep 2015
    • 15

    #2
    Nope, min does what I thought it would in the first place. 1 reading over 10% in last 5 mins and it triggers. I want every reading in the last 5 mins to be 10% or more before it triggers.

    Comment

    • s2390
      Junior Member
      • Sep 2015
      • 15

      #3
      Ok. My silly mistake. Missed the m off 5m in min(5m)>10 !

      Now works as expected

      Comment

      Working...