Hi,
For quite some time we are struggling to reference expression macros in email messages sent in custom message's body when a trigger gets executed.
According to https://www.zabbix.com/documentation...eration/macros this should be as simple as specifying expression, but it doesn't work no matter what we do. The email message contains "UNKNOWN" in place of the metric referenced.
Apart from the actual expression we want to trigger, even the one presented in the documentation {?last(/hostname/system.cpu.load[,avg1])} doesn't work in message body for us (host obviously has that metric when we try).
It's definitely not an issue with the expression itself, as according to https://www.zabbix.com/documentation...ression_macros those expressions can be used in graph names and there everything works fine, so it's just the message body for alert > trigger action > custom message for Email (HTML).
Right now we are doing weird workarounds with multiple triggers on separate keys to access their values as builtin macros work fine, but that introduces some weird edge-cases for us and ton of unnecessary custom logic.
Tried also the older syntax {hostname
ur.key.last()}, but that doesn't work either.
For quite some time we are struggling to reference expression macros in email messages sent in custom message's body when a trigger gets executed.
According to https://www.zabbix.com/documentation...eration/macros this should be as simple as specifying expression, but it doesn't work no matter what we do. The email message contains "UNKNOWN" in place of the metric referenced.
Apart from the actual expression we want to trigger, even the one presented in the documentation {?last(/hostname/system.cpu.load[,avg1])} doesn't work in message body for us (host obviously has that metric when we try).
It's definitely not an issue with the expression itself, as according to https://www.zabbix.com/documentation...ression_macros those expressions can be used in graph names and there everything works fine, so it's just the message body for alert > trigger action > custom message for Email (HTML).
Right now we are doing weird workarounds with multiple triggers on separate keys to access their values as builtin macros work fine, but that introduces some weird edge-cases for us and ton of unnecessary custom logic.
Tried also the older syntax {hostname
ur.key.last()}, but that doesn't work either.