0% found this document useful (0 votes)
60 views

Upgrading Zabbix From 1.8.x To 2.4.x - Eric's Notes

The document provides instructions for upgrading a Zabbix monitoring server from version 1.8.x to 2.4.x. The upgrade needs to be done in three stages - first upgrading to 2.0.x, then to 2.2.x, and finally to 2.4.x. Each stage involves stopping services, backing up files and databases, removing the old version, installing the new version, updating configurations, and restarting services.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Upgrading Zabbix From 1.8.x To 2.4.x - Eric's Notes

The document provides instructions for upgrading a Zabbix monitoring server from version 1.8.x to 2.4.x. The upgrade needs to be done in three stages - first upgrading to 2.0.x, then to 2.2.x, and finally to 2.4.x. Each stage involves stopping services, backing up files and databases, removing the old version, installing the new version, updating configurations, and restarting services.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

4/3/2018 Upgrading Zabbix from 1.8.x to 2.4.

x | Eric's Notes

Eric's Notes
Notes, observations and other useful bits

Home
About
Contact

Type text to search here...


Home > CentOS, Linux, Monitoring, RHEL, Zabbix > Upgrading Zabbix from 1.8.x
to 2.4.x

Upgrading Zabbix from 1.8.x to 2.4.x


May 28, 2015 Eric Leave a comment Go to comments

Rough guide to get your monitoring server up to Zabbix 2.4.x on CentOS 6.x
The upgrade needs to be done in 3 stages.

Stage 1 – Upgrade from 1.8.x to 2.0.x: All steps, with 4a;5a;


Stage 2 – Upgrade from 2.0.x to 2.2.x: Only steps 1;2;3;4b;5b;7;8;
Stage 3 – Upgrade from 2.2.x to 2.4.x: Only steps 1;2;3;4c;5c;7;8;9;

1. Stop Zabbix Services


/etc/init.d/zabbix-server stop
/etc/init.d/zabbix-agent stop
2. Take a backup of zabbix configuration files (/etc/zabbix/*)
mkdir ~/etc_zabbix.bak
cp -r -p /etc/zabbix/* ~/etc_zabbix.bak
3. Take a backup of Zabbix database (mysql)
mysqldump -u zabbix -p zabbix > ~/zabbix_dump.sql
4. Remove your existing Zabbix Installation
a) yum erase zabbix*
b) yum erase zabbix20* – remove zabbix 2.0 –
c) yum erase zabbix22* – remove zabbix 2.2

Note! For version 2.0 and 2.2 installed via epel use commands below

5. Install Zabbix
a) yum –enablerepo=epel install zabbix20-server-mysql zabbix20-agent zabbix20-
web-mysql
b) yum install zabbix22-server-mysql zabbix22-agent zabbix22-web-mysql
c) Add 2.4 repo: rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-
release-2.4-1.el6.noarch.rpm
Install zabbix 2.4: yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
6. Upgrade DB Schema from 1.8.x to 2.0.x consists of 2 steps. (Only required for 1.8
to 2.0)
a) make upgrade script executable.
chmod +x /usr/share/zabbix-mysql/upgrades/2.0/upgrade
b) run the script
cd /usr/share/zabbix-mysql/upgrades/2.0/
./upgrade -u zabbix -p zabbix

Note! Bear in mind that upgrade will take a while and you will get multiple DB
password prompts
Note2! for Stage2 and Stage3, mysql upgrade will happen automatically after you
start Zabbix

7. Next compare and update your configuration files. Old config files are in the zabbix
folder (/etc/zabbix/) with the following extension .rpmsave
Use the following commands to compare:
diff /etc/zabbix/zabbix_agentd.conf.rpmsave /etc/zabbix_agentd.conf
diff /etc/zabbix/zabbix_server.conf.rpmsave /etc/zabbix_server.conf
Or use a tool called winmerge
8. Start Zabbix-services
/etc/init.d/zabbix-server start
/etc/init.d/zabbix-agent start
9. Enable autostart for Zabbix services
chkconfig zabbix-server on
https://erickoo.wordpress.com/2015/05/28/upgrading-zabbix-from-1-8-x-to-2-4-x/ 1/5
4/3/2018 Upgrading Zabbix from 1.8.x to 2.4.x | Eric's Notes
chkconfig zabbix-agent on

-Eric

Advertisements

Report this ad

Report this ad

Share this:

 Reddit

Like

Be the first to like this.

Related

Upgrading Zabbix from 2.4.x Zabbix Action to Start a Add additional disk space to
to 3.0.x on CentOS 7 Windows Service disk in CentOS or RHEL
In "CentOS" In "CentOS" In "CentOS"

Categories: CentOS, Linux, Monitoring, RHEL, Zabbix Tags: CentOS, Linux, Monitoring,
RHEL, Zabbix
Comments (1) Trackbacks (1) Leave a comment Trackback

1.
chung
September 23, 2015 at 4:31 am
Reply

great. thanks you Eric

1. April 13, 2016 at 4:53 pm


Upgrading Zabbix from 2.4.x to 3.0.x on CentOS 7 | Eric's Notes

Leave a Reply

https://erickoo.wordpress.com/2015/05/28/upgrading-zabbix-from-1-8-x-to-2-4-x/ 2/5
4/3/2018 Upgrading Zabbix from 1.8.x to 2.4.x | Eric's Notes

Enter your comment here...

Add additional disk space to disk in CentOS or RHEL Squid WARNING! Your cache is
running out of filedescriptors
RSS feed

Author

Twitter Updates

Export Mailbox into a PST from


Exchange 2010
erickoo.wordpress.com/2017/03/15/exp…
1 year ago
Manage Office 365 User licenses
with Powershell
erickoo.wordpress.com/2017/01/13/man…
1 year ago
How to recover sysadmin access to SQL
Server 2012 when sa password is lost
erickoo.wordpress.com/2017/01/12/how…
1 year ago

Recent Posts
Export Mailbox into a PST from
Exchange 2010
Manage Office 365 User licenses
with Powershell
How to recover sysadmin access to SQL
Server 2012 when sa password is lost
Configure logs to be sent to External
Syslog Server (Synology) using ESXi Web
Host Client
Can’t import Windows 10 Pro WIM into
MDT 2013 Update 2

Archives

March 2017 (1)


January 2017 (4)
November 2016 (3)
May 2016 (4)
April 2016 (1)
March 2016 (24)
June 2015 (1)
May 2015 (5)
May 2014 (3)
April 2014 (1)
March 2014 (1)
November 2013 (1)
April 2011 (1)
February 2011 (1)
https://erickoo.wordpress.com/2015/05/28/upgrading-zabbix-from-1-8-x-to-2-4-x/ 3/5
4/3/2018 Upgrading Zabbix from 1.8.x to 2.4.x | Eric's Notes
November 2010 (2)
September 2010 (1)
August 2010 (2)
February 2010 (1)
October 2009 (10)
September 2009 (8)
August 2009 (1)
July 2009 (1)
June 2009 (6)
May 2009 (5)
April 2009 (18)

Active Directory AD CS ALSA Anti-Spam

Automatic Updates Automation Azure AD Backups CentOS


Cisco Data Protection Manager 2007 DHCP Dropbox EMS

ESXi ESXi Shell Exchange Exchange


2007 Exchange 2010 Exchange 2013 Exchange
Management Tools Firefox Forefront Google Chrome GRUB 2
Hyper-V IIS7 ISA 2006 Jaunty Jackalope Karmic Koala
Linux MDT 2013 Microsoft Monitoring
Office 365 Outlook 2007 Outlook Anywhere POP3
Powershell Remote Desktop Services RHEL
SAN SAN Certificates SCL Scripts SharePoint 2007
SQL Server SQL Server 2005 SQL
ShellRunAs Skype
Server 2008 R2 Storage Synology System Center
Essentials Ubuntu Urban Dictionary USB Sound
Virtualisation VMware Windows 7 Windows 10
Windows Live Windows Server
Windows Server 2003 R2
Windows Server 2008 Windows
Server 2008 R2 Windows Server 2008 Server
Core Windows Server 2012 Windows Server Core
Windows Vista Windows XP WSS 3.0 XFCE Xubuntu
Zabbix

Blogs Im Following

AD Services Team Blog


Bear Grylls
Hey Scripting Guy
Jono Bacon
MS Exchange Team Blog
MS SharePoint Team Blog
MS Virtualization blog
Paulo Coelho's Blog
Scott Berkun
Windows Powershell Blog

Estonian Blogs

Andres Sirel
Melborp's Blog

WordPress

Log In

Blog Stats
202,132 hits

Readers

https://erickoo.wordpress.com/2015/05/28/upgrading-zabbix-from-1-8-x-to-2-4-x/ 4/5
4/3/2018 Upgrading Zabbix from 1.8.x to 2.4.x | Eric's Notes

Advertisements

Report this ad

Top
Blog at WordPress.com.

https://erickoo.wordpress.com/2015/05/28/upgrading-zabbix-from-1-8-x-to-2-4-x/ 5/5

You might also like