[ZBX-3148] User macro on template level not expanded in trigger names Created: 2010 Oct 27  Updated: 2017 May 30  Resolved: 2012 May 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.0rc4

Type: Incident report Priority: Minor
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: macros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

last trunk rev


Attachments: PNG File usermacro_in_template_and_others.png    

 Description   

Suppose, we define user macro {$UPSNAME} at template level and use it in Item description(name) created for this template. In list of Items for this is template the macro is not expanded. Macro $1 also not expanded. This is bad.
If macro {$UPSNAME} is defined at global level, then it expanded in Item description at template level - this is right.

Macro {$UPSNAME} and $1 in trigger name is not expanded in all Configuration menu (except tool-tip with trigger list), even the macro {$UPSNAME} is defined at host level, although ZBX-2681 now is closed.
picture as proof
related, but other issue ZBX-2924



 Comments   
Comment by richlv [ 2011 Aug 30 ]

trunk rev 21363. both user & positional ($1) macros resolve ok in item names now. in trigger names neither resolves

Comment by richlv [ 2012 Jan 26 ]

still there in 1.8 branch rev 25028.
note that user macros are resolved in trigger names if they are shown in the popup, that appears when clicking on an item, but not when triggers are displayed in the list

Comment by dimir [ 2012 Jan 26 ]

User macros are resolved in Monitoring->Triggers properly.

Comment by Toms (Inactive) [ 2012 May 08 ]

Fixed in dev. branch: svn://svn.zabbix.com/branches/dev/ZBX-3148

Comment by Eduards Samersovs (Inactive) [ 2012 May 09 ]

Tested

Comment by Toms (Inactive) [ 2012 May 09 ]

Fixed in 2.0.0rc4 r27364

Generated at Wed May 08 04:21:43 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.