Hello,
I have a simple setup where Discovery creates an item and a trigger with a single parameter: {#USERNAME} .
I wanted to attach an action to this, which passes this {#USERNAME} of course resolved to an external API using curl. Unfortunately this did not work as the macro did not resolve. I'm using 5.0 and https://www.zabbix.com/documentation...ed_by_location clearly lists LLD macros, but it does not work?
I worked around the issue by putting {#USERNAME} in the trigger description and then using {TRIGGER.DESCRIPTION} in my action code and this works fine.
But this is a bit of a hack. How is this done correctly?
LP,
Jure
I have a simple setup where Discovery creates an item and a trigger with a single parameter: {#USERNAME} .
I wanted to attach an action to this, which passes this {#USERNAME} of course resolved to an external API using curl. Unfortunately this did not work as the macro did not resolve. I'm using 5.0 and https://www.zabbix.com/documentation...ed_by_location clearly lists LLD macros, but it does not work?
I worked around the issue by putting {#USERNAME} in the trigger description and then using {TRIGGER.DESCRIPTION} in my action code and this works fine.
But this is a bit of a hack. How is this done correctly?
LP,
Jure
More common way to do it, would be the use of tags for this. Setting a value to a tag and later refer to it with {EVENT.TAGS.<tag name>} macro.
Comment