Zabbix version upgrade (1.8.3 to 1.8.12)

最近公司这边在做Zabbix服务器的升级,从OpenSuse11.2 升级到OpenSuse11.4,然后Zabbix就出现了兼容性问题(OpenSuse11.4 无法兼容zabbix1.8.3),而在OpenSuse的网站上也没有Zabbix的更新包,所以只能按照官网的升级思路去升级Zabbix了:删除原先的zabbix包,然后重新安装新版本的源码包,数据库不需要动。

因为工作的同事们不是中国人,本文是写给同事们看的,就按照最初写好的格式发布了。

如果有跟我遇到相似情况的,基本上按照粗斜体中的命令就可以成功升级了,升级需要的文件在这里:http://files.cnblogs.com/delly/Zabbix_Update_packages.zip。

好,下面正文:

  1. Remove the old version Zabbix 1.8.3. (Linux team).
    You may run: rpm -qa | grep zabbix to check all the installed zabbix packages. Please confirm all the installed packages have been removed before perform the new installation.
    Before remove:

    After:
  2. Install the dependency packages: (Linux team).
    gcc
    make
    mysql-devel
    curl-devel
    net-snmp-devel
    (Above packages could be find from the OpenSuse 11.4 OS iso file, Wintel team could mount it and Linux team will help to install)

    iksemel-1.4.tar.gz (Linux team will install this package with below steps:

    1. Upload file iksemel-1.4.tar.gz to /tmp, then cd /tmp.
    2. tar –zxf iksemel-1.4.tar.gz
    3. cd iksemel-1.4
    4. ./configure
    5. make
    6. make install
  3. Upload the file zabbix-1.8.12.tar.gz to /tmp, then cd /tmp.
  4. tar –zxf zabbix-1.8.12.tar.gz
  5. cd zabbix-1.8.12
  6. ./configure --enable-server --enable-proxy --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
  7. make install
  8. Basically, the new version Zabbix have been installed, please run zabbix_server –V to verify the version of zabbix.
  9. Copy the config file to folder: /etc/zabbix:
    cd /tmp/zabbix-1.8.12
    cp misc/conf/zabbix_server.conf /etc/zabbix/
    cp misc/conf/zabbix_proxy.conf /etc/zabbix/
    cp misc/conf/zabbix_agent.conf /etc/zabbix/
    cp misc/conf/zabbix_agentd.conf /etc/zabbix/
  10. vi /etc/zabbix/zabbix_server.conf
    Find out below 2 lines, then modify as below: (find function in VI: type "/ DBUser" in command mode)
    DBUser=zabbix
    DBPassword=zabbix
  11. Upload the files: zabbix_server and zabbix_agentd to /etc/init.d/, then add execute permission:

    chmod +x /etc/init.d/zabbix_server
    chmod +x /etc/init.d/zabbix_agentd

  12. Start and stop the zabbix_server and zabbix_agentd to verify the installation with below commands:
    /etc/init.d/zabbix_server start
    /etc/init.d/zabbix_server stop
    ps –ef | grep zabbix
    /etc/init.d/zabbix_agentd start
    /etc/init.d/zabbix_agentd stop
    ps –ef | grep zabbix

    After confirmed the zabbix server and agentd is no problem, then continue to configure the zabbix web interface:

    1. cd /tmp/zabbix-1.8.12/frontends/php/
    2. mkdir /srv/www/htdocs/zabbix
    3. cp -a . /srv/www/htdocs/zabbix
    4. Open a browser under AIA VPN, input the address: http://10.50.162.39<IP address here>/zabbix/queue.php

  1. Click "Next>>" Button. Then read and accept GPL v2.
  2. Make sure that all software pre-requisites are met.
  3. Configure database settings. Zabbix database must already be created.
    Please input "zabbix" in "Name", "User" and "Password" fields.
  4. Click Next. See summary of settings.
  5. Download configuration file and place it under conf/.
    1. Click the "Save configuration file" button.
    2. After saved, upload the file zabbix.conf.php to /srv/www/htdocs/zabbix/conf/
  6. Finishing installation.

Till now, all the configuration is done, input the monitoring address on browser:
http://10.50.162.39/zabbix/ to try the new environment.

2014-07-14

Zabbix version upgrade (1.8.3 to 1.8.12)

时间: 2024-10-12 13:15:53

Zabbix version upgrade (1.8.3 to 1.8.12)的相关文章

How to install / setup /upgrade PHP 5.5.x on Ubuntu 12.04 LTS

原文:http://www.dev-metal.com/how-to-setup-latest-version-of-php-5-5-on-ubuntu-12-04-lts/ 最近遇到了要在ubuntu 12.04 上升级php版本的问题,下面是升级php到最新的版本的方法: Please note: This works fine. But this package will also upgrade your apache to version 2.4 which has different

ASA Upgrade to Version 9.1.3 Fails with &quot;No Cfg structure found in downloaded image file&quot; Error Message

Contents Introduction Problem Solution Cisco ASA IOS: https://software.cisco.com/download/type.html?mdfid=284143092&flowid=31542 Introduction This document describes a problem encountered when you attempt to upgrade the Cisco Adaptive Security Applia

How to upgrade vim to version 8 on CentOS 7

同学们好,现在很多vim重度使用者呢,追求把vim打造成一流的IDE,于是很多人想着把vim升级到8.0但是编译安装呢又很麻烦,现在就分享一下使用yum把vim从7.0升级到8.0的经验 [[email protected] ~]# vim --versionVIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 21 2016 17:00:20)Included patches: 1-160How to upgrade it to version 8

zabbix自动发现oracle表空间并监控其使用率

监控需求 Oracle表空间使用率实时监控,当表空间使用率达到95%时触发告警机制.Oracle表空间分为系统默认表空间和用户创建的表空间,而表空间又有自动扩展和非自动扩展两种类型,用户(DBA)在创建表空间时可以根据应用需求指定是否开启表空间自动扩展.那么在这里我们需要分析一个监控策略,就是当zabbix监控到某个表空间使用率达到95%,那么就让触发器触发警告(Warning)信息,并发送邮件给DBA或管理者.当检测到表空间没有开启自动扩展时,则触发Information信息.说明一下:ora

zabbix 监控-华为路由器(ASG2100)

前言- 最近给公司建立zabbix监控体系,包含系统监控,硬件监控,网络监控,业务监控,自定义监控等等,今天主要把公司核心路由的端口进行浏览监控,通过端口流量图可以实时了解网络状况,废话不多说,开整: 一.系统环境介绍 系统环境:CentOS6.8 路由信息:ASG2100 NET-SNMP version:  5.5 Zabbix version:3.0 二.基本配置2.1 安装snmp工具 [[email protected] ~]# yum -y install net-snmp-util

Zabbix 3.0.3 SQL Injection

Zabbix version 3.0.3 suffers from a remote SQL injection vulnerability. ========================================== Title: Zabbix 3.0.3 SQL Injection Vulnerability Product: Zabbix Vulnerable Version(s): 2.2.x, 3.0.x Fixed Version: 3.0.4 Homepage: http

zabbix通过微信告警

zabbix version:3.0.3 先申请一个微信企业号:https://qy.weixin.qq.com 申请步骤略 新增成员,添加成员后,会生成一个二维码,扫描关注 创建应用(消息型应用),并给部门设置管理员(设置---权限管理--新建管理组): 要确认管理员能读取通讯录,可以使用应用发送消息 注意:这时需要管理员的CorpID和Secret 我们要准备这些东西: 一个微信企业号 企业号已经被部门成员关注 企业号里有一个可以发消息的应用 一个授权管理员,可以使用该应用给成员发消息 我们

Zabbix 3.2.6监控虚拟机VMware

一.总览 从Zabbix 2.2.0开始支持监控 VMware 虚拟化环境,Zabbix使用低水平(low-level)的规则自动发现VMware hypervisors 和virtual machines,并创建主机监控他们,Zabbix提供的默认的模板用来监控VMware vCenter 或者 ESX hypervisor. 1.监控原理 虚拟机的监控主要分为两步,第一,vmware collector Zabbix processes回去收集虚拟机的数据,这些进程通过SOAP协议从VMwa

zabbix 3.2 安装和使用

zabbix3.2安装 1 Getting (获取.得到)Zabbix        #获取zabbix Overview    #概述 [???v?vju:] There are four ways(方法)of getting Zabbix:    #以下四种方式获得zabbix Install it from the distribution [?d?str??bju??n] (分布.分发) packages (包) Download the latest source archive [?