> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lwops.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# zabbix-agent2 证书监控

> 使用平台自动或手动安装的agent2，由于agent版本版本问题，zabbix-agent2 5.0版本无法使用自带的证书监控，需要先升级至zabbix-agent2 6.0版本及以上。 zabbix-agent2 6.0下载地址：https://repo.zabbix.com/zabbix/...

使用平台自动或手动安装的agent2，由于agent版本版本问题，zabbix-agent2 5.0版本无法使用自带的证书监控，需要先升级至zabbix-agent2 6.0版本及以上。 zabbix-agent2 6.0下载地址：[https://repo.zabbix.com/zabbix/6.0/rhel/7/x86\_64/](https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/) 在此地址中找到对应系统版本的6.0及以上的版本的agent2 ![zabbix-agent2 证书监控 操作截图 1](https://lwweb.oss-cn-shenzhen.aliyuncs.com/docs/images/yuque/zabbix-agent2-cert/image-01.png)

# 1.安装agent

**如担心影响客户系统，agent可安装于server或proxy端（建议在server或proxy端**）

## 1.1 yum方式安装

安装前先卸载自动安装或手动安装的agent，此处不展示卸载过程 安装zabbix-agent2过程如下： ![zabbix-agent2 证书监控 操作截图 2](https://lwweb.oss-cn-shenzhen.aliyuncs.com/docs/images/yuque/zabbix-agent2-cert/image-02.png) **yum install zabbix-agent2-6.0.10-release1.el7.x86\_64.rpm** ![zabbix-agent2 证书监控 操作截图 3](https://lwweb.oss-cn-shenzhen.aliyuncs.com/docs/images/yuque/zabbix-agent2-cert/image-03.png) ![zabbix-agent2 证书监控 操作截图 4](https://lwweb.oss-cn-shenzhen.aliyuncs.com/docs/images/yuque/zabbix-agent2-cert/image-04.png) yum 方式安装的agent默认的配置文件存放于/etc/zabbix/zabbix\_agent2.conf 按需修改配置文件

## 1.2编译安装

# 2.配置监控主机

## 2.1 模板选择

选择demo上的“[TLS/SSL证书模板\[Agent2\]](https://6.lwops.cn/zbx/templates/templates.php?form=update\&templateid=11830)”模板 ![zabbix-agent2 证书监控 操作截图 5](https://lwweb.oss-cn-shenzhen.aliyuncs.com/docs/images/yuque/zabbix-agent2-cert/image-05.png) 按要求进行模板迁移

## 2.2 模板宏值说明

![zabbix-agent2 证书监控 操作截图 6](https://lwweb.oss-cn-shenzhen.aliyuncs.com/docs/images/yuque/zabbix-agent2-cert/image-06.png) 添加主机时填写相关域名信息
