How To Upgrade Zabbix 5.0 To 5.4 on Ubuntu 20.04

In this tutorial for upgrade zabbix system from version 5.0 to 5.4. ZABBIX is an open source network monitoring tools. So I will try to provide zabbix server upgrade using testing lab.

###############################

Operating system:

 ubuntu 20.04

Zabbix version :

 5.0.16

Mysql version :

 8

Php version :

Sponsored
 7.4
###############################

Step #01: Check all version using below command.

root@ubuntu20:~#: lsb_release -a && ip r
root@ubuntu20:~#: zabbix_server -V
root@ubuntu20:~#: mysql -V
root@ubuntu20:~#: php -v
root@ubuntu20:~#: systemctl stop zabbix-server

Step #02: Create backup zabbix server.

root@ubuntu20:~#: mkdir backup
root@ubuntu20:~#: cp /etc/zabbix/zabbix_server.conf /root/backup
root@ubuntu20:~#: cp /etc/zabbix/zabbix_agentd.conf /root/backup
root@ubuntu20:~#:

Sponsored
cp /etc/zabbix/web/zabbix.conf.php /root/backup root@ubuntu20:~#: mysqldump -u root -p zabbix > /root/backup/zabbix.sql

Step #03: Create upgrade using below command.

root@ubuntu20:~#: wget wget https://repo.zabbix.com/zabbix/5.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.4-1%2Bubuntu20.04_all.deb
root@ubuntu20:~#: dpkg -i zabbix-release_5.4-1+ubuntu20.04_all.deb
root@ubuntu20:~#: apt-get update
root@ubuntu20:~#: apt-get install --only-upgrade zabbix-server-mysql zabbix-agent zabbix-frontend-php
root@ubuntu20:~#: apt -y autoremove
root@ubuntu20:~#: tail -f /var/log/zabbix/zabbix_server.log

Step #04: Move old config file

root@ubuntu20:~#: cp /root/backup/zabbix_server.conf /etc/zabbix/
root@ubuntu20:~#: cp /root/backup/zabbix_agentd.conf /etc/zabbix/
root@ubuntu20:~#: cp /root/backup/zabbix.conf.php /etc/zabbix/web/

Then restart below service.

root@ubuntu20:~#: systemctl restart zabbix-server zabbix-agent nginx php7.4-fpm
root@ubuntu20:~#: systemctl enable zabbix-server zabbix-agent nginx php7.4-fpm

Check log for upgrade status.

root@ubuntu20:~#: tail -f /var/log/zabbix/zabbix_server.log

If see any problem please see YouTube channel for more details.

 

Ubuntu Server Admin

Recent Posts

Ubuntu Command-Line Mastery: The Essential Guide for Power Users

The Linux terminal is a powerful tool allowing users to control their system precisely and…

9 hours ago

Ubuntu Weekly Newsletter Issue 876

Welcome to the Ubuntu Weekly Newsletter, Issue 876 for the week of January 19 –…

3 days ago

How to utilize CPU offloads to increase storage efficiency

Canonical Ceph with IntelⓇ Quick Assist Technology (QAT) Photo by v2osk on Unsplash When storing…

4 days ago

Breaking the Rules: RPC Pattern with Apache Kafka and Karafka

Introduction Using Kafka for Remote Procedure Calls (RPC) might raise eyebrows among seasoned developers. At…

4 days ago

How to Install PalWorld on Ubuntu VPS (Easy 5 Minute Guide)

This article provides a guide for how to install PalWorld on Ubuntu VPS server. How…

5 days ago

How to Resolve Unmet Dependencies Error on Ubuntu

Using APT to manage software on Ubuntu (or similar Linux systems) is generally simple. It…

6 days ago