[ZBX-11162] Macro {$MACRO:context} does not work in function parameters. Created: 2016 Sep 06  Updated: 2017 May 30  Resolved: 2016 Sep 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Documentation (D)
Affects Version/s: 3.0.4
Fix Version/s: None

Type: Incident report Priority: Minor
Reporter: Kazuo Ito Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: lld, macro, macrocontext, triggerfunctions
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File event detail 01.png     PNG File event detail 02.png     PNG File global macro.png     PNG File host macro.png     PNG File trigger prototypes.png     PNG File trigger.png    
Issue Links:
Duplicate
duplicates ZBXNEXT-1667 support lld macros in trigger functio... Closed

 Description   

1)Set to 80 in the global macro {$FILESYSTEM_LIMIT}.

2)Set to 10 in the host macro {$FILESYSTEM_LIMIT:/}.

3)Set the "TEST1 {#FSNAME}" and "TEST2 {#FSNAME}" to trigger prototype.


Using the macro A in trigger parameter are incorrectly deployed.



 Comments   
Comment by richlv [ 2016 Sep 06 ]

duplicate of ZBXNEXT-1667

Comment by Glebs Ivanovskis (Inactive) [ 2016 Sep 13 ]

Although it really is a duplicate of ZBXNEXT-1667 I don't want to close it.

It's really frustrating when the same construction may work or not work depending on it's placement in the same frontend input field. User does not need to know that Zabbix stores trigger functions and their parameters separately from trigger expressions and separate mechanisms are responsible for user- and LLD-macro resolution.

These documentation pages need to be updated:

Comment by Vladimir Silin (Inactive) [ 2016 Sep 23 ]

After discussion with martins-v mention of macro context usage limitation was added to Macros Supported Location Overview table for 3.0 and 3.2 (in macro {$MACRO} Description column).

sasha Is is not correct. User macros without and with contexts are supported in trigger function parameters. Are not supported lld macros in trigger function parameters and inside of user macro contexts which located in such parameters.

REOPENED

Comment by Vladimir Silin (Inactive) [ 2016 Sep 29 ]

Added note about limitation to the LLD documentation chapter "Using LLD macros in user macro context" for versions 3.0 and 3.2.
Linked this chapter as one of usage examples on "User macro" page (for 3.0 and 3.2).

sasha Looks good to me. CLOSED

Generated at Sat Apr 20 09:46:16 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.