Ad Widget

Collapse

Zabbix Trigger help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Isa
    Junior Member
    • Aug 2013
    • 6

    #1

    Zabbix Trigger help

    Hi All

    I need help with a trigger. I have an item that outputs an int (X) what I need the trigger to do is if (X) = 0 it's fine if (X) > 0 there is a problem but if the last (X) is not equal to current (X) then there is a problem.

    So basically I have a problem if there is a diff between prev and current X but current x is 0 everthing is fine.
  • Heilig
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2013
    • 366

    #2
    You can use "abschange" function (https://www.zabbix.com/documentation...gers/functions) and trigger like this:
    ({TRIGGER.VALUE}=0&({server:item.abschange(0)}=1&{ server:item.last(0)}>0))|({TRIGGER.VALUE}=1&{serve r:item.last(0)}#0)

    Comment

    • Isa
      Junior Member
      • Aug 2013
      • 6

      #3
      Originally posted by Heilig
      You can use "abschange" function (https://www.zabbix.com/documentation...gers/functions) and trigger like this:
      ({TRIGGER.VALUE}=0&({server:item.abschange(0)}=1&{ server:item.last(0)}>0))|({TRIGGER.VALUE}=1&{serve r:item.last(0)}#0)
      thanks I will try it.

      Comment

      Working...