-
Incident report
-
Resolution: Duplicate
-
Minor
-
None
-
3.0.5rc1, 3.2.1rc1, 3.4.0alpha1
ZBX-10797 fixed calculated item formula parsing and evaluation, but creation of LLD calculated items from prototypes is still not aware of context macros and tries to find functions (lowercase letters followed by parentheses with some content) inside macro context.
Look how weird it is:
Prototype formula | Item formula | Comments |
---|---|---|
{$MACRO:"{#LLD_MACRO}"} |
{$MACRO:"value"} |
That's fine, {#LLD_MACRO} got replaced with value |
{$MACRO:"a({#LLD_MACRO})"} |
{$MACRO:"a({#LLD_MACRO})"} |
Zabbix thinks a(...) is a function and expects host:key reference in the first parameter, where LLD macros are not substituted |
{$MACRO:"a(,{#LLD_MACRO})"} |
{$MACRO:"a(,value)"} |
Still, Zabbix thinks a(...) is a function but now resolves LLD macro in its second parameter |
{$MACRO:"a(,{#LLD_MACRO})"} |
{$MACRO:"a(," <-leading and trailing whitespace-> ")"} |
Here Zabbix even put double quotes around fake function parameter |