Already got the Autoregistration working well, with picking up the OS type and applying basic Linux or Windows template by checking the HostMetadataItem which is set to system.uname. Theoretically I could also pass installed software with the HostMetadataItem configuration parameter for additional template linking at the Autoregistration stage, but it is not practical with hundreds of machines to build different configuration files for each host agent. Also, installed software on a host can vary over time, it would then need to modify the agent configuration after a change.
Is it possible to automatically link a template to a host, based on what software the host has installed?
For example, to automatically link the Docker by Zabbix agent 2 template if the host has Docker installed, or to link MSSQL by ODBC template if the host has MS SQL installed?
Tried fiddling around with Triggers but went into a dead end in how to make a trigger link a template. Also checked out Discovery rules which doesn't seem to be what would help here. Just started playing around with Zabbix in an enterprise environment so forgive me for asking total noob questions.
Is it possible to automatically link a template to a host, based on what software the host has installed?
For example, to automatically link the Docker by Zabbix agent 2 template if the host has Docker installed, or to link MSSQL by ODBC template if the host has MS SQL installed?
Tried fiddling around with Triggers but went into a dead end in how to make a trigger link a template. Also checked out Discovery rules which doesn't seem to be what would help here. Just started playing around with Zabbix in an enterprise environment so forgive me for asking total noob questions.
If you run something from cron/scheduler to get installed software, you might aswell update metadata in agent config..
which will trigger new autoreg..
Comment