Ad Widget

Collapse

What does {ITEM.VALUE} resolve into if there is an expression?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Victor Sudakov
    Junior Member
    • Apr 2020
    • 17

    #1

    What does {ITEM.VALUE} resolve into if there is an expression?

    Dear Colleagues,

    If I use the {ITEM.VALUE} or {ITEM.LASTVALUE} macros in a trigger's operational data, and the trigger actually uses a function like avg(XXX,#5)>7, should the said macros resolve to the last value of the XXX item or to the result of the function (the average value in this case)? Also, where is this documented?
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Макросы имеют отношение к элементу данных, не к триггерной функции => the last value of the XXX item

    Comment

    • Victor Sudakov
      Junior Member
      • Apr 2020
      • 17

      #3
      Originally posted by Hamardaban
      Макросы имеют отношение к элементу данных, не к триггерной функции => the last value of the XXX item
      Спасибо за пояснение, а как мне тогда показать в operational data значение функции, т.е. уже после усреднения?

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        Создать вычисляемый элемент данных с функцией и на него вешать триггер

        Comment

        • Victor Sudakov
          Junior Member
          • Apr 2020
          • 17

          #5
          Originally posted by Hamardaban
          Создать вычисляемый элемент данных с функцией и на него вешать триггер
          Я рассматривал этот вариант, но решил что ради показа средней величины в operational data это несколько перебор, тем более что триггеру уже доступно значение функции. Думал может изящнее вариант есть.

          Comment

          Working...