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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3rc1, 2.1.0
    • Fix Version/s: 2.0.0
    • Component/s: Server (S)

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: