在客户机上安装agent和sender时报错
[root@ORACLE yum.repos.d]# yum install -y zabbix-agent zabbix-sender
已加载插件:fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
设置安装进程
Loading mirror speeds from cached hostfile
* webtatic: uk.repo.webtatic.com
解决依赖关系
--> 执行事务检查
---> Package zabbix-agent.x86_64 0:3.4.15-1.el7 will be 安装
--> 处理依赖关系 libc.so.6(GLIBC_2.17)(64bit),它被软件包 zabbix-agent-3.4.15-1.el7.x86_64 需要
--> 处理依赖关系 systemd,它被软件包 zabbix-agent-3.4.15-1.el7.x86_64 需要
--> 处理依赖关系 systemd,它被软件包 zabbix-agent-3.4.15-1.el7.x86_64 需要
--> 处理依赖关系 libpcre.so.1()(64bit),它被软件包 zabbix-agent-3.4.15-1.el7.x86_64 需要
---> Package zabbix-sender.x86_64 0:3.4.15-1.el7 will be 安装
--> 处理依赖关系 libc.so.6(GLIBC_2.17)(64bit),它被软件包 zabbix-sender-3.4.15-1.el7.x86_64 需要
--> 处理依赖关系 libpcre.so.1()(64bit),它被软件包 zabbix-sender-3.4.15-1.el7.x86_64 需要
--> 完成依赖关系计算
错误:Package: zabbix-agent-3.4.15-1.el7.x86_64 (zabbix)
Requires: systemd
错误:Package: zabbix-agent-3.4.15-1.el7.x86_64 (zabbix)
Requires: libc.so.6(GLIBC_2.17)(64bit)
错误:Package: zabbix-agent-3.4.15-1.el7.x86_64 (zabbix)
Requires: libpcre.so.1()(64bit)
错误:Package: zabbix-sender-3.4.15-1.el7.x86_64 (zabbix)
Requires: libpcre.so.1()(64bit)
错误:Package: zabbix-sender-3.4.15-1.el7.x86_64 (zabbix)
Requires: libc.so.6(GLIBC_2.17)(64bit)
You could try using --skip-broken to work around the problem
** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows:
PackageKit-0.5.8-20.el6.x86_64 has missing requires of PackageKit-yum = ('0', '0.5.8', '20.el6')
PackageKit-0.5.8-20.el6.x86_64 has missing requires of PackageKit-yum-plugin = ('0', '0.5.8', '20.el6')
2:postfix-2.6.6-2.2.el6_1.x86_64 has missing requires of libmysqlclient.so.16()(64bit)
2:postfix-2.6.6-2.2.el6_1.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)
python-urlgrabber-3.9.1-11.el6.noarch is a duplicate with python-urlgrabber-3.9.1-8.el6.noarch
rhn-check-1.0.0-87.el6.noarch has missing requires of yum-rhn-plugin >= ('0', '0.9.1', '35')
原因:配置zabbix yum源后未建立zabbix yum元数据
yum clean all
yum makecache
元数据缓存已建立
[root@ORACLE yum.repos.d]# yum install -y zabbix-agent zabbix-sender
已加载插件:fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
设置安装进程
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
* webtatic: us-east.repo.webtatic.com
解决依赖关系
--> 执行事务检查
---> Package zabbix-agent.x86_64 0:3.4.15-1.el6 will be 安装
---> Package zabbix-sender.x86_64 0:3.4.15-1.el6 will be 安装
--> 完成依赖关系计算
依赖关系解决
========================================================================================================================================================================================
软件包 架构 版本 仓库 大小
========================================================================================================================================================================================
正在安装:
zabbix-agent x86_64 3.4.15-1.el6 zabbix 365 k
zabbix-sender x86_64 3.4.15-1.el6 zabbix 269 k
事务概要
========================================================================================================================================================================================
Install 2 Package(s)
总下载量:634 k
Installed size: 2.5 M
下载软件包:
http://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-agent-3.4.15-1.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 18 - "transfer closed with 169235 bytes remaining to read"B 00:10 ETA
尝试其他镜像。
(2/2): zabbix-sender-3.4.15-1.el6.x86_64.rpm | 269 kB 00:04
下载软件包出错:
zabbix-agent-3.4.15-1.el6.x86_64: failure: zabbix-agent-3.4.15-1.el6.x86_64.rpm from zabbix: [Errno 256] No more mirrors to try.
[root@ORACLE yum.repos.d]# yum install -y zabbix-agent zabbix-sender
已加载插件:fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
设置安装进程
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
* webtatic: us-east.repo.webtatic.com
解决依赖关系
--> 执行事务检查
---> Package zabbix-agent.x86_64 0:3.4.15-1.el6 will be 安装
---> Package zabbix-sender.x86_64 0:3.4.15-1.el6 will be 安装
--> 完成依赖关系计算
依赖关系解决
====================================================================================================================================================================================
软件包 架构 版本 仓库 大小
========================================================================================================================================================================================
正在安装:
zabbix-agent x86_64 3.4.15-1.el6 zabbix 365 k
zabbix-sender x86_64 3.4.15-1.el6 zabbix 269 k
事务概要
========================================================================================================================================================================================
Install 2 Package(s)
总文件大小:634 k
总下载量:365 k
Installed size: 2.5 M
下载软件包:
zabbix-agent-3.4.15-1.el6.x86_64.rpm | 365 kB 00:02
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
Warning: RPMDB altered outside of yum.
** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows:
PackageKit-0.5.8-20.el6.x86_64 has missing requires of PackageKit-yum = ('0', '0.5.8', '20.el6')
PackageKit-0.5.8-20.el6.x86_64 has missing requires of PackageKit-yum-plugin = ('0', '0.5.8', '20.el6')
2:postfix-2.6.6-2.2.el6_1.x86_64 has missing requires of libmysqlclient.so.16()(64bit)
2:postfix-2.6.6-2.2.el6_1.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)
python-urlgrabber-3.9.1-11.el6.noarch is a duplicate with python-urlgrabber-3.9.1-8.el6.noarch
rhn-check-1.0.0-87.el6.noarch has missing requires of yum-rhn-plugin >= ('0', '0.9.1', '35')
正在安装 : zabbix-agent-3.4.15-1.el6.x86_64 1/2
正在安装 : zabbix-sender-3.4.15-1.el6.x86_64 2/2
Installed products updated.
Verifying : zabbix-sender-3.4.15-1.el6.x86_64 1/2
Verifying : zabbix-agent-3.4.15-1.el6.x86_64 2/2
已安装:
zabbix-agent.x86_64 0:3.4.15-1.el6 zabbix-sender.x86_64 0:3.4.15-1.el6
完毕!