Ad Widget

Collapse

Macros in calculated item formulas

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beth@cs
    Junior Member
    • Dec 2014
    • 2

    #1

    Macros in calculated item formulas

    Hi,

    We have recently updated to zabbix 2.2.16 which has broken some of our low level discovery calculated items, I am assuming due to this fix.

    The formula for the item is just a macro {#CLIENT_TOTAL_FUNCTION}. This gets populated via the following low level discovery json string:

    {"data":[{
    "{#CLIENT_TOTAL_NAME}":"Total quota",
    "{#CLIENT_TOTAL_KEY}":"quota",
    "{#CLIENT_TOTAL_FUNCTION}":"last(as.quota)"}
    ]}

    I am now getting this error:

    Cannot update item: macro "{#CLIENT_TOTAL_FUNCTION}" value is not numeric

    This was all working fine before the update, but now the macro is not being parsed correctly. It should be recognised as a function, but it is being interpreted as a constant.

    Is there any way I can force it to be recognised and interpreted as a function and not numeric?
Working...