Ad Widget

Collapse

Problems with delta() trigger and negative number

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sfr
    Junior Member
    • Nov 2015
    • 6

    #1

    Problems with delta() trigger and negative number

    Hi

    I use the delta() function to measure a specific item in Zabbix.

    I want to trigger if the item value rose by more than 100 in the last 24 hours, and for that I use delta().

    Code:
    {mysql:mysql.table_count[app.errors].delta(86400)}>100
    The problem I have is that it also triggers when the value has gone down by more than 100.

    Is there a better way to do this?
  • sfr
    Junior Member
    • Nov 2015
    • 6

    #2
    I've tried doing this instead:

    Code:
    {mysql:mysql.table_count[app.errors].last()}-{mysql:mysql.table_count[app.errors].last(,1h)}>500
    I'm a bit confused about the arguments to
    Code:
    last()
    though – in the docs, it says that last accepts a
    Code:
    sec
    OR
    Code:
    #num
    parameter as the first argument, but later it says that its ignored.



    So I think using "time shift" is the correct way, and leaving the first parameter empty.

    Since it is impossible to actually test triggers in zabbix I don't know if this is working. Any pointers on that?

    Thanks
    Last edited by sfr; 30-01-2018, 11:00.

    Comment

    Working...