Zabbix 4.4
I'd like to include the last value of a few other host items as operational data in a trigger.
Based on the trigger doc (and Macro doc) and other info I consulted, I expected something like this would work:
The resultant trigger message expands {HOST:HOST} just fine, but it doesn't expand what I'm hoping to be the last value of that key for that host.
I'd like to include the last value of a few other host items as operational data in a trigger.
Based on the trigger doc (and Macro doc) and other info I consulted, I expected something like this would work:
Code:
[{{HOST.HOST}:mykey1.last(#1)}] {{HOST.HOST}:mykey2.last(#1)}: {{HOST.HOST}:mykey3.last(#1)}
- The item is defined in a template that the host is linked to.
- The trigger isn't looking at any of these item keys. It's looking at some other item defined in the template.
- mykey1 is something like test.scenario.name
Comment