ry_dong

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

Zabbix-agent安装问题汇总

 

1.python解释器问题;

解决方法:

先执行yum -y install https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm

再执行yum install Zabbix-agent

 

2.

Errors during downloading metadata for repository 'AppStream':

  - Curl error (28): Timeout was reached for http://vault.centos.org/centos/8/AppStream/x86_64/os/repodata/repomd.xml [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]

Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

暂时的解决方法:下载安装包放到本地进行安装。

 

3.本地安装提示缺少依赖

解决方法:先下载依赖包:

http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-3.el8.x86_64.rpm

使用命令rpm -i compat-openssl10-1.0.2o-3.el8.x86_64.rpm --nodeps --force强制安装

然后再安装agent的rpm包

 

 

4. 安装完成,但出现告警:

[/usr/lib/tmpfiles.d/libstoragemgmt.conf:1] Line references path below legacy directory /var/run/, updating /var/run/lsm → /run/lsm; please update the tmpfiles.d/ drop-in file accordingly.

[/usr/lib/tmpfiles.d/libstoragemgmt.conf:2] Line references path below legacy directory /var/run/, updating /var/run/lsm/ipc → /run/lsm/ipc; please update the tmpfiles.d/ drop-in file accordingly.

 

查看得到:

 

解决方案:

将提示的需要修改的文件进行更改:旧→ 新

 

5 zabbix告警,运行python脚本的版本问题。\ 如何指定zabbix运行的python版本。

 

posted on 2023-09-20 10:39  ry_d  阅读(232)  评论(0编辑  收藏  举报