Is it possible to auto register a server with a service as criteria? an example would be if it has a specific service or services, then put it in this group and link this template.
Ad Widget
Collapse
Auto-registration question
Collapse
X
-
Hi,
you can use a custom cmd in the HostMetadataItem setting in your agent config.
Example: i use following on our Linux servers to attach different templates depending on the host type:
On the server side, you can add several auro-registration actions with different conditions based on the value of the HostMetadataItem.Code:HostMetadataItem=system.run["if dmidecode -s system-product-name |grep -q VMware ; then echo Linux VMware; else if dmidecode -s system-product-name |grep -q RHEV ; then echo Linux RHEV; else echo Linux Physical; fi; fi"]
See also: https://www.zabbix.com/documentation...o_registration
Another option is to link the templatee afterwards: we discussed this also in following post: https://www.zabbix.com/forum/zabbix-...to-host-groups
Regards,
Gert
-
Can I have multiple host meta data items in my config? I have one for system.uname how would I specify the second one without conflict?Comment
-
INdeed, i think that's the way to go. That's why i included this link: https://www.zabbix.com/forum/zabbix-...to-host-groups
Comment
Comment