Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-5540

User macros do not expand in formula field for calculated items

XMLWordPrintable

      The user macros are not expanded in calculated items.

      For example:

      • creating a virtual host
      • definition of 2 macros {$HOST_MACRO1} et {$HOST_MACRO2} containing the names of known hosts zabbix
      • application of a template with a calculated item defined as follows:
        last("{$HOST_MACRO1}:proc.num[snmpd]")+last("{$HOST_MACRO2}:proc.num[snmpd]")

      This item goes unsupported and the error message tells me clearly that the macro is ignored:
      Can not Evaluate function [last ()]: item [test {$HOST_MACRO1} proc.num [snmpd]] not found

            Unassigned Unassigned
            dotneft Alexey Pustovalov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: