Ad Widget

Collapse

Trigger Operational Data: Different Item Than Trigger Expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • todd_mm
    Junior Member
    • Oct 2019
    • 3

    #1

    Trigger Operational Data: Different Item Than Trigger Expression

    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:
    Code:
    [{{HOST.HOST}:mykey1.last(#1)}] {{HOST.HOST}:mykey2.last(#1)}: {{HOST.HOST}:mykey3.last(#1)}
    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.
    • 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
    How am I supposed to refer to an item for a host in the trigger?
    Last edited by todd_mm; 17-03-2020, 23:15.
  • jmrice
    Member
    • Aug 2019
    • 33

    #2
    Did you ever find a solution for this? I am trying to do something similar ...
    I want to reference operational data from a different item than the trigger event.

    Code:
    Issuer: {{HOST.HOST}:system.run[/usr/local/bin/checkissuer.sh {EVENT.TAGS.domain} 443].last()}
    {HOST.HOST} expands, and the {EVENT.TAGS.domain} returns the appropriate TAG, but when the message arrives,
    all I receive is:

    Issuer: *UNKNOWN*

    The docs say that the expression is invalid. What am I missing?

    Comment

    Working...