-
New Feature Request
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
Enhance foreach functions in calculated items to support partial wildcards within item key parameters (e.g., mssql.waittype.time[PREEMPTIVE*]), enabling flexible aggregation across dynamically discovered items.
Zabbix foreach item filters currently only support:
- full wildcard replacement of entire item key parameters (e.g., key[*], key[*,*])
- not partial matches inside parameters (e.g., key[PREEMPTIVE*] is not supported)
As per documentation, wildcards:
- cannot be used for a part of the item key, host name, or individual parameter.
- must match entire parameters and be fully separated.
This causes the following valid-looking expression to fail:
sum(last_foreach(//mssql.waittype.time[PREEMPTIVE*]))
With the error:
Cannot evaluate function: item ".../mssql.waittype.time[PREEMPTIVE*]" does not exist...
Requested Improvement:
Allow foreach item filters to:
- support partial wildcards inside item key parameters, like:
/host/mssql.waittype.time[PREEMPTIVE*]
- or even across multiple parameters:
/host/some.key[*,param2*]
This would enable dynamic aggregation of values e.g. from LLD-discovered items based on patterns - a currently unsupported use case