Zabbix Upgrade/Update Process – Step by Step

Step 1 - Stop Apache

# Stop Apache Web Server in SysVinit Systeme #
# service zabbix-server stop

# Stop Apache Web Server in Systemd Systeme #
# systemctl stop zabbix-server

Step 2 - Backup SQL
# mysqldump -u root -p zabbix > zabbix.sql

Step 3 - Back up configuration files, PHP files and Zabbix binaries

# Configuration files #
# cp /etc/zabbix/zabbix_server.conf /opt/zabbix-backup
# cp /etc/httpd/conf.d/zabbix.conf  /opt/zabbix-backup

# PHP files and Zabbix binaries #
# cp /usr/share/doc/zabbix-* /opt/zabbix-backup
Step 4 - Remove existing repo

# To RPM System #
# rm -Rf /etc/yum.repos.d/zabbix.repo

# To DEB System #
$ sudo rm -Rf /etc/apt/sources.list.d/zabbix.repo

Step 5 - Installation and repo config - update to version 3.2
# To RPM System #
# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

# To Debian 7 System (It will ask you to choose option, then choose I or Y then enter) #
# wget http://repo.zabbix.com/zabbix/3.2/debian/pool/main/z/zabbix-release/zabbix-release_3.2-1+wheezy_all.deb
# dpkg -i zabbix-release_3.0-1+wheezy_all.deb
# apt-get update

# To Debian 8 System (It will ask you to choose option, then choose I or Y then enter) #
# wget http://repo.zabbix.com/zabbix/3.2/debian/pool/main/z/zabbix-release/zabbix-release_3.2-1+jessie_all.deb
# dpkg -i zabbix-release_3.0-1+jessie_all.deb
# apt-get update

# To Ubuntu 14.04 System and it will work 15.04 & 15.10 too (It will ask you to choose option, then choose I or Y then enter) #
# wget https://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+trusty_all.deb
# dpkg -i zabbix-release_3.0-1+trusty_all.deb
# apt-get update
Step 6 - Upgrading Zabbix packages
# To RPM System #
# yum upgrade zabbix-server-mysql zabbix-web-mysql zabbix-agent

# To DEB System #
$ sudo apt-get install --only-upgrade zabbix-server-mysql zabbix-web-mysql zabbix-agent

Step 7 - Start Zabbix server

# Start Apache Web Server in SysVinit Systeme #
# service zabbix-server start

# Restart Apache Web Server in Systemd Systeme #
# systemctl start zabbix-server

Step 8 - Wait for DB to update (few minutes)

Step 9 - Access Zabbix


	

Leave a Reply

Your email address will not be published. Required fields are marked *

nine − 6 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.