Ad Widget

Collapse

Cannot use TRIGGER.URL in action message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kuwa
    Junior Member
    • Dec 2013
    • 2

    #1

    Cannot use TRIGGER.URL in action message

    I use user Macro in "TRIGGER.URL".
    It seems now explode.

    ---------------------------------
    *User Maxro
    ---------------------------------
    {$HOST1} = 'myhost.com'

    ---------------------------------
    *Trigger
    ---------------------------------
    Name = TRIGGER-{$HOST1}
    URL = {$HOST1}

    ---------------------------------
    *Action Default Message
    ---------------------------------
    HOST: {HOST.NAME}
    TRIGGER NAME: {TRIGGER.NAME}
    URL: {TRIGGER.URL}

    ---------------------------------
    *Result:
    ---------------------------------
    HOST: myhost.com
    TRIGGER NAME: TRIGGER-myhost.com <--- exploded.
    URL: {$HOST1} <--- NOT exploded.
    ~~~~~~~~~~

    Zabbix Version is 2.2.1.
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    The macros can be used in [...] trigger names and expressions [...] but not in trigger url.
    See: User macros and Additional support for user macros

    There is a request for resolving internal macros: ZBXNEXT-1128

    Comment

    Working...