[comment]: # translation:outdated

[comment]: # ({0f75ad4f-aae66dcf})
# 1 Zabbix agent模板操作

确保使用[Zabbix agent](/manual/concepts/agent)收集指标的模板正确运行的步骤:

1\. 确保Zabbix agent已安装在主机上。对于主动
检查，还需确保主机已添加到agent的'ServerActive'
参数中[configuration
file](/manual/appendix/config/zabbix_agentd)。\
2. [关联模板](/manual/config/templates/linking#关联模板)将
模板关联到目标主机(如果该模板在您的
Zabbix安装中不可用，您可能需要先import模板的.xmlfile
- 请参阅[Templates
out-of-the-box](/manual/config/templates_out_of_the_box)部分
获取说明)。\
3. 如有必要，调整模板宏的值。\
4. 配置被监控实例以允许与Zabbix共享数据。

模板的详细描述，包括完整的宏列表、监控项和
触发器，可在模板的Readme.mdfile中获取(通过
点击模板名称访问)。

以下模板可用:

-   [Apache by Zabbix agent](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/apache_agent/README.md?at=refs%2Fheads%2Frelease%2F6.0)
-   [HAProxy by Zabbix agent](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/haproxy_agent/README.md?at=refs%2Fheads%2Frelease%2F6.0)
-   [IIS by Zabbix agent](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/iis_agent/README.md?at=refs%2Fheads%2Frelease%2F6.0)
-   [IIS by Zabbix agent active](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/iis_agent_active/README.md?at=refs%2Fheads%2Frelease%2F6.0)
-   [Microsoft Exchange Server 2016 by Zabbix agent](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/exchange/README.md?at=refs%2Fheads%2Frelease%2F6.0)
-   [Microsoft Exchange Server 2016 by Zabbix agent active](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/exchange_active/README.md?at=refs%2Fheads%2Frelease%2F6.0)
-   [MySQL by Zabbix agent](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/db/mysql_agent/README.md?at=refs%2Fheads%2Frelease%2F6.0)
-   [Nginx by Zabbix agent](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/nginx_agent/README.md?at=refs%2Fheads%2Frelease%2F6.0)
-   [PHP-FPM by Zabbix agent](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/php-fpm_agent/README.md?at=refs%2Fheads%2Frelease%2F6.0)
-   [PostgreSQL by Zabbix agent](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/db/postgresql/README.md?at=refs%2Fheads%2Frelease%2F6.0)
-   [RabbitMQ cluster by Zabbix agent](https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/rabbitmq_agent/README.md?at=refs%2Fheads%2Frelease%2F6.0)

[comment]: # ({/0f75ad4f-aae66dcf})
