• 博客访问: 365463
  • 博文数量: 93
  • 博客积分: 660
  • 博客等级: 上士
  • 技术积分: 1574
  • 用 户 组: 普通用户
  • 注册时间: 2005-08-08 11:39
文章分类

全部博文(93)

文章存档

2017年(32)

2016年(7)

2015年(3)

2014年(3)

2013年(31)

2012年(2)

2011年(1)

2006年(1)

2005年(13)

微信关注

IT168企业级官微



微信号:IT168qiye



系统架构师大会



微信号:SACC2013

订阅
热词专题
centos6安装zabbix3.2的agent 2017-05-03 19:06:16

分类: 系统运维

centos6安装zabbix3.2的agent

前言

有两台老的centos6的服务器,运行的是zabbix2.0版本的agent,zabbix server升级到3.2之后详细升级过程,发现这两台上的agent连不上server了。于是升级agent到3.2。

停止并删除老版本的zabbix的agent

service zabbix_agentd stop && rm /usr/local/sbin/zabbix_agentd -f

安装

安装zabbix的repo

rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm

安装agent

yum install -y zabbix-agent

[root@O236 yum.repos.d]# rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
Retrieving http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
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 LLC 
 Package: 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 http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-agent-3.2.5-1.el6.x86_64.rpm

yum install http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-sender-3.2.5-1.el6.x86_64.rpm

故障解决

3.2版本和之前2.0版本的冲突

[root@O236 yum.repos.d]# rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
Retrieving http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
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 http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
Retrieving http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
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 http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
Retrieving http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
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
阅读(228) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
请登录后评论。

登录 注册