Ad Widget

Collapse

Calculated item based on a trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbribeiro@gmail.com
    Junior Member
    • Jun 2018
    • 13

    #1

    Calculated item based on a trigger

    HI, I would like to know if is possible to create a calculated item representing the trigger status of another item ? For example, this new calculated item would value 0 if the trigger is not triggered and 1 otherwise.
    In case it is not possible another approach would be a calculated item with a comparator, for example {last(anotherkey) > 20}. If I could somehow map this boolean logic to zero or one in a calculated item would be another way to solve my problem.

    Thanks in advance.
  • DmitryL
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2016
    • 278

    #2
    What's the use case for that? You can get trigger status in 1 or 0 with API.

    Comment

    • Semiadmin
      Senior Member
      • Oct 2014
      • 1625

      #3
      Yes, you may use last("anotherkey")>20 in calculated item formula. It returns 0 or 1.

      Comment


      • mbribeiro@gmail.com
        [email protected] commented
        Editing a comment
        Great, that worked. Thank you Dmitryb as well.
    Working...