If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
Ad Widget
Collapse
how can I add host group on host in host prototype
You want to add hosts created from prototype to a specific hostgroup? You just need to write that hostgroup name in that prototypes config (Groups tab), no variables needed.
Your discovery should return that hostgroup name then, so you could assign it to that {#TRIGGER.HOSTGROUP.NAME} macro... I think. Otherwise there is no data to make a decision... If you have no value for that macro, it is taken literally and you end up with a hostgroup called #TRIGGER.HOSTGROUP.NAME.
but for low level design the data must come from the system? If it can't get the pandora-group information on the host, is there a problem with the variable I'm using?
it doesn't accept when I assign as normal variable lld
Is there an article about it? What I have read does not enter the host property section at all. :/
yes. thats what I tried to say, you can use only LLD macros that your disco returns.. Default keys do not contain such info. You can find available ones here https://www.zabbix.com/documentation...scovery_fields
As you can see no such one as #TRIGGER.HOSTGROUP.NAME...
And you cannot use user macros in prototype fields. You can only use LLD macros there.
I am pretty sure you need to create some kind of script, which updates your group memberships over API.
I am afraid of it too because I will have done a manual job as doing everything manually with the api and I will still need variables such as cluster, vm folder in the vcenter to be added..
Comment