Zabbix Version: 6.4.3 (mariadb)
OS: Rocky9
vCenter: 7.0.3
Is there any way to conditionally add templates and host groups to VMs based on the information that Zabbix retrieves from vcenter?
We have the "VMware FQDN" template working nicely. Was originally 6.2 version of the template, but updated the template to the version in 6.4.
Examples of things I'd like to do:
OS: Rocky9
vCenter: 7.0.3
Is there any way to conditionally add templates and host groups to VMs based on the information that Zabbix retrieves from vcenter?
We have the "VMware FQDN" template working nicely. Was originally 6.2 version of the template, but updated the template to the version in 6.4.
Examples of things I'd like to do:
- If {#VM.GUESTFULLNAME} matches , assign our "Linux VMware VM by Agent" template.Code:
(CentOS|Red Hat Enterprise Linux) [789]
- If {#VM.GUESTFULLNAME} matches , assign our "FreeBSD VMware VM by Agent" template.Code:
FreeBSD 13.*
- If vcenter folder contains "AnotherDept", assign to host group "AnotherDept".
- If vcenter folder does not match , assign to host group "OurDept".Code:
AnotherDept1|AnotherDept2|AnotherDept3
- If FQDN ends in , set location, longitude and latitude to the location of that datacenter (especially for hypervisors).Code:
datacenter3.example.net
- If FQDN matches regex , add the FooService template and the FooService host group.Code:
[a-z0-9]+\.fooservice\.[^.]+\.example.net
Comment