全部博文(150)
分类: 系统运维
2017-05-03 19:06:16
有两台老的centos6的服务器,运行的是zabbix2.0版本的agent,zabbix server升级到3.2之后详细升级过程,发现这两台上的agent连不上server了。于是升级agent到3.2。
service zabbix_agentd stop && rm /usr/local/sbin/zabbix_agentd -f
rpm -ivh
yum install -y zabbix-agent [root@O236 yum.repos.d]# rpm -ivh Retrieving warning: /var/tmp/rpm-tmp.WC6QsV: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY Preparing... ########################################### [100%] 1:zabbix-release ########################################### [100%] You have mail in /var/spool/mail/root [root@O236 yum.repos.d]# yum install zabbix-agent Loaded plugins: fastestmirror, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn zabbix | 951 B 00:00 zabbix/primary | 6.6 kB 00:00 zabbix 43/43 zabbix-non-supported | 951 B 00:00 Resolving Dependencies --> Running transaction check ---> Package zabbix.x86_64 0:2.0.14-1.el6 will be obsoleted ---> Package zabbix-agent.x86_64 0:2.0.14-1.el6 will be updated ---> Package zabbix-agent.x86_64 0:3.2.5-1.el6 will be obsoleting --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: zabbix-agent x86_64 3.2.5-1.el6 zabbix 338 k replacing zabbix.x86_64 2.0.14-1.el6 Transaction Summary ================================================================================ Install 1 Package(s) Total download size: 338 k Is this ok [y/N]: y Downloading Packages: zabbix-agent-3.2.5-1.el6.x86_64.rpm | 338 kB 00:03 warning: rpmts_HdrFromFdno: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 Importing GPG key 0xA14FE591: Userid : Zabbix LLCPackage: zabbix-release-3.2-1.el6.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows: fonts-chinese-3.02-12.el5.noarch has missing requires of /usr/sbin/chkfontpath Installing : zabbix-agent-3.2.5-1.el6.x86_64 1/3 warning: /etc/zabbix/zabbix_agentd.conf created as /etc/zabbix/zabbix_agentd.conf.rpmnew Cleanup : zabbix-agent-2.0.14-1.el6.x86_64 2/3 Erasing : zabbix-2.0.14-1.el6.x86_64 3/3 Verifying : zabbix-agent-3.2.5-1.el6.x86_64 1/3 Verifying : zabbix-agent-2.0.14-1.el6.x86_64 2/3 Verifying : zabbix-2.0.14-1.el6.x86_64 3/3 Installed: zabbix-agent.x86_64 0:3.2.5-1.el6 Replaced: zabbix.x86_64 0:2.0.14-1.el6 Complete!
yum install
yum install
[root@O236 yum.repos.d]# rpm -ivh Retrieving warning: /var/tmp/rpm-tmp.sdkdnL: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY Preparing... ########################################### [100%] file /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX from install of zabbix-release-3.2-1.el6.noarch conflicts with file from package zabbix-release-2.0-1.el6.noarch file /etc/yum.repos.d/zabbix.repo from install of zabbix-release-3.2-1.el6.noarch conflicts with file from package zabbix-release-2.0-1.el6.noarch You have new mail in /var/spool/mail/root
[root@O236 yum.repos.d]# rpm -ivh Retrieving warning: /var/tmp/rpm-tmp.sdkdnL: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY Preparing... ########################################### [100%] file /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX from install of zabbix-release-3.2-1.el6.noarch conflicts with file from package zabbix-release-2.0-1.el6.noarch file /etc/yum.repos.d/zabbix.repo from install of zabbix-release-3.2-1.el6.noarch conflicts with file from package zabbix-release-2.0-1.el6.noarch You have new mail in /var/spool/mail/root [root@O236 yum.repos.d]# yum remove -y zabbix-release-2.0-1.el6.noarch Loaded plugins: fastestmirror, security Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package zabbix-release.noarch 0:2.0-1.el6 will be erased --> Finished Dependency Resolution
[root@O236 yum.repos.d]# rpm -ivh Retrieving warning: /var/tmp/rpm-tmp.WC6QsV: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY Preparing... ########################################### [100%] 1:zabbix-release ########################################### [100%] You have mail in /var/spool/mail/root