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

Part of aggregated function filter is lost when resolving user macros in calculated item formula during item test

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 6.0.21rc1, 6.4.6rc1, 7.0.0alpha3
    • Server (S)
    • None

      Problem description: When executing item test for a calculated item that has a user macro in one of the function filters in its formula, then the macro is resolved incorrectly: the first part of the filter ("group=" or "tag=")is lost.
      During regular value collection such macro is resolved without any issues.

      Steps to reproduce:

      1. Import the following hosts: hosts_for_calculated_item.yaml
      2. Go to Monitoring => Latest data and make sure that data is collected by all items (total 7 items) under Hypervisors hostgroup.
      3. Open the list of items of host "test 3"
      4. Open configuration of item "Calculated item - Tag - macro" or "Calculated item - with macro"
      5. Press "Test" button
      6. In the opened "Test item" dialog press "Get value and test"

      Result: according to the error message that appears in "Test item" dialog, the first part of the aggregated function filter, that defines what is being filtered, is lost during macro resolution:
      Cannot evaluate expression: no input data for function at "sum(last_foreach(/*/agent.ping?["Hypervisors"]))"
      Expected: no parts of the calculated item formula should be lost during macro resolution.

            zabbix.dev Zabbix Development Team
            solonkins Sergejs Olonkins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: