-
Change Request
-
Resolution: Unresolved
-
Minor
-
None
-
3.2.1, 3.2.2, 3.2.3
-
None
-
All Agents
Item aliases should support positional parameters.
Since 3.2 item aliases support parameters (ZBXNEXT-3206).
So it is possible to have something like
Alias=alias.service.discovery[*]:service.discovery
in the agent config file.
This feature is promoted as a means of having multiple discovery rules with the same key linked to a host, each rule discovering a different subset of items due to filtering.
However, currently there is no easy way to create item prototypes for each of these discovery rules that have the same item key.
For example you may want to monitor the state of discovered services, so for each discovery rule you want an item with a key of service.info[{#SERVICE.NAME}].
A neat workaround would be to add support for positional parameters to aliases.
The item prototypes for each discovery rule could then have a key such as:
alias.service.info[a_unique_string,my_real_service_name]
..and in the agent config file, an alias statement such as
Alias=alias.service.info[*]:service.info[$2]