Ad Widget

Collapse

Help with trigger expression

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cyberphantom
    Member
    • Dec 2021
    • 67

    #1

    Help with trigger expression

    Hello everyone
    I'm working with Zabbix for a while, but I have some troubles when I need triggers.
    I need to set a trigger that verify if the item value is greater than 0 during the dawn, at 2 a.m to 7 a.m.
    I've tried this trigger with the Zabbix documentation help: {HOSTNAME:itemname.last()}>0 and {HOSTNAME:itemname.last().time()}>020000 and {HOSTNAME:itemname.last().time()}<070000
    But it's not working, it's invalid, I'm doing something wrong...
    Help!
  • Answer selected by cyberphantom at 09-03-2022, 13:21.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    "itemname.time()" not "itemname.last().time()"

    People should use more of that "Add" button next to "expression" box. It really helps to choose functions and set their parameters and avoid such mistakes..

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #2
      "itemname.time()" not "itemname.last().time()"

      People should use more of that "Add" button next to "expression" box. It really helps to choose functions and set their parameters and avoid such mistakes..

      Comment

      • cyberphantom
        Member
        • Dec 2021
        • 67

        #3
        That's it! I'll definitely use more of that button...
        Thanks!

        Comment

        Working...