Ad Widget

Collapse

template using {HOST.HOST} macro and to be able to override that

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hampus
    Junior Member
    • Aug 2017
    • 1

    #1

    template using {HOST.HOST} macro and to be able to override that

    Hi
    I'm creating a template containing a discovery with item prototypes that usually needs the {HOST.HOST}.
    However, I need to be able to override this value to a different value (e.g. sometimes i need to use the fqdn and sometimes i need the shortname).

    Anyone got an idea how to solve this?

    I tried to use a macro on template level: {$MY_MACRO} = {HOST.HOST}.
    And use the {$MY_MACRO} in my item prototypes.
    But it does not resolv the {HOST.HOST} macro value to the actual hostname, I only get the string "{HOST.HOST}" into my discovered items.
    Last edited by hampus; 11-11-2020, 19:42.
Working...