Ad Widget

Collapse

More on Min and Max trigger thresholds

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mgoodman
    Member
    • Apr 2011
    • 33

    #1

    More on Min and Max trigger thresholds

    So, I'm a little confused still by Min and Max thresholds, especially as the #x AFTER the trigger isn't documented anywhere, that I see.

    For example:
    item = ping check
    check interval = 60s

    I want a trigger that says:
    If the check has failed 3 out of the past 5 checks, trigger.

    Would I write that as:
    {Template_Name:icmpping.max(#5)}#3
    or
    {Template_Name:icmpping.max(#5)}=3
    or
    what?

    I'm just confused as to what the numbers after the # represent OUTSIDE of the max function.

    Same goes for min.

    Thanks,
    Michael
  • mgoodman
    Member
    • Apr 2011
    • 33

    #2
    By the way, it seems that:
    {Template_Name:icmpping.max(#5)}#1
    means that if the check has failed 5 times in a row, trigger.

    So I'm still confused as to what the second # does in this scenario.

    Comment

    • mgoodman
      Member
      • Apr 2011
      • 33

      #3
      Also, some checks I have (e.g. web tests) have various thresholds of failure within them.

      E.g. a web check that doesn't load the webpage (step 1) will fail with a code of 1; if it isn't able to login it will fail with a code of 2; if it isn't able to read data after login it fails with a code of 3; and so on.

      Normally, I had been using a check such as:
      {URL:web.test.fail[scenario].last(0)}>0

      How would that translate into the same scenario above?

      Comment

      • mgoodman
        Member
        • Apr 2011
        • 33

        #4
        Mod please remove the last post.

        Comment

        • Tractorboy
          Member
          • Oct 2010
          • 98

          #5
          This may be even more confusing

          I think you need to use avg(#5)>

          if ping response of failure = 2? then 3 failures = 6 /5 attempts

          Does that help?

          .avg(#5)>=6/5

          If there is a sum option then go for .sum(#5)>=6 (It may be .count(#5)>=6)
          Last edited by Tractorboy; 17-02-2012, 18:37. Reason: Added Count

          Comment

          Working...