In this recipe, we will show you how you can create templates in Zabbix. It's always advised to use templates as much as possible.
For this recipe, we need a Zabbix server and access to the server with a Zabbix administrator or super administrator account.
Templates
as group.Templates are just a collection of items, triggers, applications, and so on, that we can reuse. Instead of creating each item or trigger and so on on every host, we just create a template. Then we make everything in our template and link it to a bunch of hosts so that we can reuse our work.
Templates are often used to link servers with the same service or application such as PostgreSQL, Apache, Zabbix agent, Red Hat, Ubuntu, proxies, and so.
Since Zabbix 2.2, web scenarios were added to the template. When you edit a already saved template, you will see some extra buttons at the end of the page. The Update button will, of course, update any changes made. The Clone button will duplicate your template into a new template and copy all entities like triggers, items, and so on inherited from linked templates. The Full clone will do the same as the Clone button but also copy directly attached items, triggers, and so on, from the template to the new template. Delete will obviously delete your template but all items will remain with the host while Delete and clear will remove all items from the linked hosts.