Ad Widget

Collapse

Detect a flapping service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rvs@get.be
    Junior Member
    • May 2017
    • 2

    #1

    Detect a flapping service

    I have found a lot of information on the web and in forums about how to detect flapping in checks using Hysteresis. However I specifically want to check if an item check IS flapping and get an alert.
    I.e. if an item value goes above and below the trigger threshold multiple times in a certain time period, I want to get an alert.
    Is there any way to do this?
    Specifically very usefull in detecting a flapping service.
  • Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    #2
    For example, trigger with condition "trigger change state at least 1 time in 2 min. during 6 min."
    {your_item.count(2m,{$THRESHOLD},gt)}>0 and {your_item.count(2m,{$THRESHOLD},le)}>0
    and {your_item.count(2m,{$THRESHOLD},gt,2m)}>0 and {your_item.count(2m,{$THRESHOLD},le,2m)}>0
    and {your_item.count(2m,{$THRESHOLD},gt,4m)}>0 and {your_item.count(2m,{$THRESHOLD},le,4m)}>0
    Last edited by Semiadmin; 10-05-2017, 09:55.

    Comment

    • rvs@get.be
      Junior Member
      • May 2017
      • 2

      #3
      That's a nice solution.
      I was hoping I could do something like "flapped 10 times in the last 24 hours", but your solution comes close to that.

      Thanks very much.

      Comment

      • jfpatenaude
        Junior Member
        • Aug 2020
        • 2

        #4
        This solution is more elegant: https://www.zabbix.com/forum/zabbix-...period-of-time

        It uses a "Simple change" pre-processing to detect transitions and then you can count transitions using a trigger that looks like "count(24h,1) > 10"

        Comment

        Working...