Ad Widget

Collapse

lld: there is no way to create host with macro value from customized macro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gralech
    Junior Member
    • Oct 2020
    • 12

    #1

    lld: there is no way to create host with macro value from customized macro

    Good day!

    I'm trying to create lld rule, wich create host with macro, wich value get from library of global or templated macro (same template)
    ex:
    1. Template A has library of passwords: {$RMQ.API.PASSWORD} (default value), {$RMQ.API.PASSWORD:"Service1"}, {$RMQ.API.PASSWORD:"Service2"} ...
    2. lld rule in Template A creating hosts, with attached default rmq template, with macro {$RMQ.API.PASSWORD:"{#SERVICE_NAME}"} - and it's value not resolved, either library of passwords in template A or in Global macros

    is this possible?
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    If I understood you correctly this functionality is not supported. Are the actual passwords coming from lld? If yes, just use lld macros in item prototypes. If not, what's the use to have this dynamic way, just using
    {$RMQ.API.PASSWORD} (default value), {$RMQ.API.PASSWORD:"Service1"}, {$RMQ.API.PASSWORD:"Service2"}
    seems to be a good idea.

    Comment

    • gralech
      Junior Member
      • Oct 2020
      • 12

      #3
      No actual passwords not coming from lld. I want to keep passwords library in template or in global macros

      Comment

      Working...