Ad Widget

Collapse

MACRO inside a MACRO

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pinarella
    Junior Member
    • May 2013
    • 16

    #1

    MACRO inside a MACRO

    Hello, i am trying to have a customized trigger names with macros.
    example:

    Host xyz is Down
    Host xyz is Up

    where macro: {$STATUS_NETWORK0} = Down
    and in trigger description name is:

    Host {HOSTNAME} is {$STATUS_NETWORK{ITEM.VALUE1}}

    and trigger is fired and it displays it like this:
    Host xyz is {$STATUS_NETWORK0}

    is it posible to use macros in macros or there is a workaround?
  • pinarella
    Junior Member
    • May 2013
    • 16

    #2
    Any help? Guides?
    Can i call this dynamic macros?

    Comment

    • m_gularte
      Member
      Zabbix Certified Specialist
      • Jul 2012
      • 85

      #3
      Hi

      Do you really need that?

      What value your item returns? Is it always 1 or 0? If so, you can use value mapping (in adminstration / value mapping):

      Service state

      0 ⇒ Down
      1 ⇒ Up

      And use macro: {ITEM.LASTVALUE}

      Host xyz is {ITEM.LASTVALUE}

      Comment

      • pinarella
        Junior Member
        • May 2013
        • 16

        #4
        Oh yes, that solves my problem. i have found similar but didn't know that acts like that in trigger names.

        Thanks!

        Comment

        Working...