-
Problem report
-
Resolution: Duplicate
-
Trivial
-
None
-
6.0.21rc1, 6.4.6rc1, 7.0.0alpha3
-
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:
- Import the following hosts: hosts_for_calculated_item.yaml
- Go to Monitoring => Latest data and make sure that data is collected by all items (total 7 items) under Hypervisors hostgroup.
- Open the list of items of host "test 3"
- Open configuration of item "Calculated item - Tag - macro" or "Calculated item - with macro"
- Press "Test" button
- 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.
- duplicates
-
ZBX-22451 Test button breaks formula for calculated item and not able to test anything
- Closed