Ad Widget

Collapse

Adding Triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Joao Victor
    Junior Member
    • Feb 2024
    • 1

    #1

    Adding Triggers

    I'm trying to add a trigger to a specific host.
    After writing the expression correctly i'm able to teste it, and it works normally. But when i try to save the trigger it comes back an error ""/1/expression": invalid second parameter in function "last"."
    The expresion in question is ---- last(*********)<= 50*last(*********, 15m)/100
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Whatever you try to achieve there... last(/host/item, 15m) does not work... last refers to a single value in a row of values... first, second, third etc.. if you want to move back in time... use time shift .. last(/host/item,#1:15m)
    Code:
    [B]last[/B] (/host/key,<#num<:time shift>>)
    50*value/100 is same as value/2

    Comment

    Working...