Ad Widget

Collapse

How to configure a good last 3 values trigger. Mine is not working as expected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waardd
    Member
    • Aug 2014
    • 82

    #1

    How to configure a good last 3 values trigger. Mine is not working as expected

    The trigger fires when 1 of the three dependencies is met.
    So in this example

    The trigger is:
    {Template x:Avg["POLLER_CHANGED_CST: Trigger Changed .. Handled"].last()}>30000 and {Template x:Avg["POLLER_CHANGED_CST: Trigger Changed .. Handled"].last(#2)}>30000 and {Template x:Avg["POLLER_CHANGED_CST: Trigger Changed .. Handled"].last(#3)}>30000

    In database the values are:

    2016-10-09 09:29:59;303995.0
    2016-10-09 09:19:59;2794.0
    2016-10-09 08:49:59;1379.0

    Trigger went off on the high value and should not go of because the 2 previous are < 30000

    What am i doing wrong.

    Zabbix version is 2.4
  • guzzijason
    Senior Member
    • Dec 2015
    • 106

    #2
    Offhand, I'm not sure why that's not working the way you expect. However, you can simplify the expression greatly by simply using the min() function:


    {Template x:Avg["POLLER_CHANGED_CST: Trigger Changed .. Handled"].min(#3)}>30000


    That says, if the minimum value over the last 3 intervals is greater than 30000, then fire. As long as one of the values is beneath the threshold, you should be OK.

    __Jason

    Comment

    Working...