Hi,
For example we want to get trigger from one Zabbix instance and create the same in another instance. We can use trigger.get and trigger.create methods respectively
There is an option "expandExpression" and if it is set to "true" - all macros including user macro will be expanded in the replay. If you don't use "expandExpression" parameter in the original "trigger.get" you will get macros as needed. But you also will get unexpanded functions, so if macro is function parameter (for example nodata(...,{$NODATA_MACRO})) it is like
{12345}=1
No clue that macro is there regardless of query parameters. (i.e. if the macro is used as a threshold value, there are still options, albeit inconvenient, then there are none at all)
At the moment, this can only be "bypassed" by importing and exporting templates
- duplicates
-
ZBXNEXT-4290 trigger.get auto-expanding functions but not macros
- Open