-
Incident report
-
Resolution: Cannot Reproduce
-
Trivial
-
None
-
5.4.8
-
None
Steps to reproduce:
- Please set the global macro as {$MACRO1} with value Global1
- Please set the local macro as {$MACRO1} with value Local1
- Please create the script and as a parameter please use this {$MACRO1} for example: notification.sh --info "{$MACRO1}"
- Please create the action for all problems from host where {$MACRO1} uses please execute the script notification.sh
Result:
Macro from global (Global1) will be used instead of Host (Local1)
Expected:
which is not in accordance with the guide:
Zabbix resolves macros according to the following precedence:
host level macros (checked first)
macros defined for first level templates of the host (i.e., templates linked directly to the host), sorted by template ID
macros defined for second level templates of the host, sorted by template ID
macros defined for third level templates of the host, sorted by template ID, etc.
global macros (checked last)