Zabbix v5.4.1
I am beginning to work with host prototypes. I can create the hosts, attached templates to them, have them collect data, I'm all good there. When it comes to naming the host I can successfully use an LLD macros such as {#MACRO_NAME}, but I can't seem to make use of something like {HOST.NAME}. The hosts that I am creating via LLD have a tight relationship to the discovering host and I want to embed the name of that host in the prototype host. In this case the LLD comes from a template so I don't just want to hard code the LLD with a hostname, hence my desire to use something like {HOST.NAME}. I've also tried using the other type of macro, for example {$HOST_NAME} with that macro value being set on the discovering host.
What I currently end up with is a discovered host whose name has an unresolved/untranslated macro name.
Anybody know how to do this?
Thanks,
Graham
I am beginning to work with host prototypes. I can create the hosts, attached templates to them, have them collect data, I'm all good there. When it comes to naming the host I can successfully use an LLD macros such as {#MACRO_NAME}, but I can't seem to make use of something like {HOST.NAME}. The hosts that I am creating via LLD have a tight relationship to the discovering host and I want to embed the name of that host in the prototype host. In this case the LLD comes from a template so I don't just want to hard code the LLD with a hostname, hence my desire to use something like {HOST.NAME}. I've also tried using the other type of macro, for example {$HOST_NAME} with that macro value being set on the discovering host.
What I currently end up with is a discovered host whose name has an unresolved/untranslated macro name.
Anybody know how to do this?
Thanks,
Graham
just need to define your LLD macros and path to them in discovery rule...
Comment