Ad Widget

Collapse

Question about the hysteresis trigger.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vrolok
    Junior Member
    • Jan 2011
    • 22

    #1

    Question about the hysteresis trigger.

    I've set the triger to:

    Code:
    ({TRIGGER.VALUE}=0&{Template_Windows:perf_counter[\Processor(_Total)\% Processor Time].min(10m)}>95)|
    ({TRIGGER.VALUE}=1&{Template_Windows:perf_counter[\Processor(_Total)\% Processor Time].max(5m)}<50)
    I think it should work like:

    If the minimum value for Processor Time is more than 95 for over 10m > Problem
    If the max value for Processor Time is less than 50 for over 5m > Recover

    In the real world scenario it's flapping every 45-50 sec from Problem to Recover but the CPU level stays at 100 all the time.

    What am I doing wrong?
  • rrupp
    Junior Member
    • Jul 2012
    • 21

    #2
    On the second line you want it to actually be a greater than check still like this:

    Code:
    ({TRIGGER.VALUE}=1&{Template_Windows:perf_counter[\Processor(_Total)\% Processor Time].max(5m)}>50)
    This is because even though the TRIGGER.VALUE is 1 (PROBLEM state) the trigger is still expected to return false (when the trigger is in OK state) and true (when the trigger is in PROBLEM state). So the second line should read as when the trigger is in a PROBLEM state (1) it will continue to be in a problem state while the max over 5 minutes is greater than 50. So then the trigger won't evaluate to false (OK) until it has been 5 minutes with no values greater than 50.

    Comment

    • vrolok
      Junior Member
      • Jan 2011
      • 22

      #3
      Thanks for your explanation. I think now I got the logic of this.

      Comment

      Working...