-
Change Request
-
Resolution: Unresolved
-
Trivial
-
None
-
2.0.4
It would be really nice if one could use macros as values for other macros.
In detail, I want to define a template macro {$SSH.IP} with a default value {HOST.IP1} on the template.
And for some hosts in this template, I want to override the {$SSH.IP} with the actual IP of the host if it doesn't match the configured agent interface IP ({HOST.IP1}).
Currently, the template macro value {HOST.IP1} is not resolved and passed directly to the item, which obviously fails. So, for now, I had to define the {$SSH.IP} macro on each of my hosts to get the item working.
Thus it would be very useful if macros would be resolved in macro values, even if it would be only non-user macros such as {HOST.IP1}.
- is duplicated by
-
ZBXNEXT-1982 Expand macros in user macros
- Closed