Ad Widget

Collapse

Zabbix upgrade 2.0.8 to 2.2.6 on CentOS 5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • piotrOS
    Junior Member
    • Sep 2014
    • 1

    #1

    Zabbix upgrade 2.0.8 to 2.2.6 on CentOS 5

    Hi


    I want to upgrade zabbix server from 2.0.8 to 2.2.6 on CentOS 5
    But I have a problem (there is no changes after upgrade), lets start from beginning:

    My server:
    php -v
    PHP 5.4.33 (cli) (built: Sep 20 2014 16:31:22)

    mysql -V
    mysql Ver 14.14 Distrib 5.5.40, for Linux (x86_64) using readline 5.1

    cat /etc/*release
    CentOS release 5.10 (Final)


    I have done below commands:

    1. Stop Zabbix:
    su - zabbix
    sudo /etc/init.d/zabbix_server stop
    sudo /etc/init.d/zabbix_agentd stop

    2. Back up the existing Zabbix database

    mkdir -p /home/zabbix/zabbix_upgrade/backup
    cd /home/zabbix/zabbix_upgrade/backup
    mysqldump -uroot -pzabbixadmin zabbix > zabbix.backup.sql

    3. Back up configuration files, PHP files and zabbix binaries
    in /home/zabbix/zabbix_upgrade/backup performed:

    cp -rp /etc/zabbix .
    cp -rp /etc/init.d/zabbix-* .
    cp -rp /usr/sbin/zabbix* .
    cp -rp /usr/local/sbin/zabbix* .
    cp -rp /usr/bin/zabbix* .
    cp -rp /usr/local/bin/zabbix* .

    4. Installation

    4.1 I've downloaded zabbix-2.2.6.tar.gz and copy to /home/zabbix/zabbix_upgrade
    4.2 tar xzvf zabbix-2.2.6.tar.gz
    4.3 cd zabbix-2.2.6
    4.4 ./configure --prefix=/usr --with-mysql --with-net-snmp --with-libcurl --enable-server --enable-agent

    [root@sip3 zabbix-2.2.6]# ./configure --prefix=/usr --with-mysql --with-net-snmp --with-libcurl --enable-server --enable-agent
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    configure: Configuring Zabbix 2.2.6
    checking whether make sets $(MAKE)... (cached) yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    <cut>
    checking for ICONV support... yes
    checking for mkdir -p candidate... ok (/bin/mkdir -p)
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating database/Makefile
    config.status: creating misc/Makefile
    config.status: creating src/Makefile
    <cut>
    ************************************************** *********
    * Now run 'make install' *
    * *
    * Thank you for using Zabbix! *
    * <http://www.zabbix.com> *
    ************************************************** *********

    4.5 make

    [root@sip3 zabbix-2.2.6]# make
    Making all in src
    make[1]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src'
    Making all in libs
    make[2]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src/libs'
    Making all in zbxcrypto
    make[3]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src/libs/zbxcrypto'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src/libs/zbxcrypto'
    Making all in zbxcommon
    make[3]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src/libs/zbxcommon'
    make[3]: Nothing to be done for `all'.
    <cut>
    Making all in upgrades
    make[1]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/upgrades'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/upgrades'
    make[1]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6'
    make[1]: Nothing to be done for `all-am'.
    make[1]: Leaving directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6'
    [root@sip3 zabbix-2.2.6]#

    4.6 make install

    [root@sip3 zabbix-2.2.6]# make install
    Making install in src
    make[1]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src'
    Making install in libs
    make[2]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src/libs'
    Making install in zbxcrypto
    make[3]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src/libs/zbxcrypto'
    make[4]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src/libs/zbxcrypto'
    make[4]: Nothing to be done for `install-exec-am'.
    make[4]: Nothing to be done for `install-data-am'.
    make[4]: Leaving directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src/libs/zbxcrypto'
    make[3]: Leaving directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src/libs/zbxcrypto'
    Making install in zbxcommon
    make[3]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/src/libs/zbxcommon'
    <cut>
    Making install in upgrades
    make[1]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/upgrades'
    make[2]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/upgrades'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/upgrades'
    make[1]: Leaving directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6/upgrades'
    make[1]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6'
    make[2]: Entering directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6'
    make[1]: Leaving directory `/home/zabbix/zabbix_upgrade/zabbix-2.2.6'

    4.7 check the zabbix version:
    [root@sip3 zabbix-2.2.6]# zabbix_server --help
    Zabbix server v2.0.8 (revision 38017) (21 August 2013)
    <cut>

    As I see there is no changes after upgrade, should I do something more or the procedure of upgrade is incorrect?
    Please help
Working...