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.
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.