Ad Widget

Collapse

Time shift parameter of baselinedev()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gomitamu
    Junior Member
    • Oct 2024
    • 2

    #1

    Time shift parameter of baselinedev()

    I want to use a baselinedev function to make anomaly detection trigger for the amount of traffic.
    I tested the formula below and it worked but it is not able to detect quickly.

    baselinedev(/host/key,1h:now/h,"d",3)>1

    Since the formula evaluates the current time as hour, if the trigger is executed at 2:00, it evaluates the data of 1:00-2:00.
    On the other hand, if the trigger is executed at 2:59, it still evaluate the data of 1:00-2:00.
    Therefore, if the anomaly happens at 2:30, it would take 30minutes to admins noticed, as the trigger executed at 3:00 can detect this anomaly.

    So, I made a formula below, but zabbix said the second parameter is not valid.
    baselinedev(/host/key,30m:now/m,"d",3)>1

    The time shift parameters of "minutes" cannot be used for baselinedev function? If so, how can I make an anomaly detection trigger with a certain quickness?

    I would appreciate any comment. Thank you.
  • Julianna Wilamowska
    Member
    • Oct 2024
    • 34

    #2
    Hello, You are correct baselinedev is not working with parameter of minutes. Below You will find link to history functions which can work with parameters smaller than hour. Hope this helps.

    Comment

    • gomitamu
      Junior Member
      • Oct 2024
      • 2

      #3
      Hi Julianna, thank you for your comment. I am going to use trend function.

      Comment

      Working...