[ZBX-20304] Macro from host level doesn't work into action/script Created: 2021 Dec 01 Updated: 2021 Dec 14 Resolved: 2021 Dec 14 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 5.4.8 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Lukasz Ma | Assignee: | Francys Nivea (Inactive) |
Resolution: | Cannot Reproduce | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Description |
Steps to reproduce:
Result: Macro from global (Global1) will be used instead of Host (Local1) Expected: Zabbix resolves macros according to the following precedence:
|
Comments |
Comment by Francys Nivea (Inactive) [ 2021 Dec 06 ] |
Could not reproduce Local macros Action configuration Result - Action log
|
Comment by Lukasz Ma [ 2021 Dec 06 ] |
Please create the new host and set macros than please execute the action (executed on zabbis server - not current host) |
Comment by Lukasz Ma [ 2021 Dec 07 ] |
Please execute the action on zabbix server instead of current host/host. It doesn't work when action executes on zabbix_server or agent on zabbix server. Then the global macro takes priority instead of local from the host. |
Comment by Lukasz Ma [ 2021 Dec 07 ] |
Please take a look into your screens: but it has been executed on local host (new server): |
Comment by Francys Nivea (Inactive) [ 2021 Dec 07 ] |
Comment by Lukasz Ma [ 2021 Dec 07 ] |
Did you make an upgrade from previous version or just install the new as 5.4.x ? |
Comment by Francys Nivea (Inactive) [ 2021 Dec 07 ] |
Using same version as informed, 5.4.8 |
Comment by Lukasz Ma [ 2021 Dec 07 ] |
Ok, but as fresh installation or upgraded? Issue occurred on the version 5.4.8 upgraded from 5.2.5 and 5.0.2 |
Comment by Lukasz Ma [ 2021 Dec 07 ] |
I forgot that Macro should be set on the template lever and template attached on Host, so: |
Comment by Lukasz Ma [ 2021 Dec 14 ] |
Hello, The issue occurs still when you will attach the template on host. Br |
Comment by Francys Nivea (Inactive) [ 2021 Dec 14 ] |
Confirmed problem when "Template Level" macro is changed at host level: I replicated the environment and new situations reported by you, and this was the result:
I don't understand when you say to create at the template level and then at the global level, as the result is to use the macro value at the template level. However, it follows the result when doing as described |