How To Upgrade Zabbix 6.0 To 6.4 on Ubuntu 22.04

In tis tutorial how to upgrade zabbix 6.0 to 6.4 using ubuntu 22.04. This is very important for your system for upgrade zabbix server.

Step : Should be check your current all service version using below command.

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

Step : Create backup folder for all backup.

root@zbx:~# mkdir backup
root@zbx:~# cp /etc/zabbix/zabbix_server.conf /root/backup
root@zbx:~# cp /etc/zabbix/zabbix_agentd.conf /root/backup
root@zbx:~# cp /etc/zabbix/web/zabbix.conf.php /root/backup
root@zbx:~# mysqldump -u root -p zabbix > /root/backup/zabbix.sql

Then type your mysql root password for backup zabbix database.

Step : Download Zabbix 6.4 version repo using below command.

root@zbx:~# wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb
root@zbx:~# dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb
root@zbx:~# apt-get update
root@zbx:~# apt-get install --only-upgrade zabbix-server-mysql zabbix-agent zabbix-frontend-php

Now check zabbix server log using below command.

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

Step : Copy old file from backup folder using below command.

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

Restart all service using below command.

root@zbx:~# systemctl restart zabbix-server zabbix-agent nginx php8.1-fpm
root@zbx:~# systemctl enable zabbix-server zabbix-agent nginx php8.1-fpm

Now check zabbix server log using below command.

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

Now set global set function for properly upgrade database.

root@zbx:~# mysql -uroot -p

Then run below command for set global function for allow update database.

MariaDB [(none)]> set global log_bin_trust_function_creators = 1;

Then exit from mysql terminal and then check log file for upgrade database.

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

Now set global set function.

root@zbx:~# mysql -uroot -p

Now set global setting as like below.

MariaDB [(none)]> set global log_bin_trust_function_creators = 0;

Now check zabbix server version using below command.

root@zbx:~# zabbix_server -V

Done

If you can any error so please see my video for clear concept.

The post How To Upgrade Zabbix 6.0 To 6.4 on Ubuntu 22.04 appeared first on TechnologyRSS.

Ubuntu Server Admin

Recent Posts

🚀 Deploy Elastic Stack on Ubuntu VPS (5 Minute Quick-Start Guide)

Here’s the guide to deploy Elastic Stack on Ubuntu VPS, with secure access, HTTPS proxying,…

1 day ago

🚀 Deploy Nagios on Ubuntu VPS

This guide walks through deploying Nagios Core on an Ubuntu VPS, from system prep to…

2 days ago

Shoryuken Has a New Maintainer, and v7.0.0 Is Almost There

After a decade under Pablo Cantero's stewardship, Shoryuken has a new maintainer - me. I'm…

5 days ago

A better way to provision NVIDIA BlueField DPUs at scale with MAAS

MAAS 3.7 has been officially released and it includes a bunch of cool new features.…

2 weeks ago

Ruby Floats: When 2.6x Faster Is Actually Slower (and Then Faster Again)

Update: This article originally concluded that Eisel-Lemire wasn't worth it for Ruby. I was wrong.…

2 weeks ago

MicroCeph: why it’s the superior MinIO alternative (and how to use it)

Recently, the team at MinIO moved the open source project into maintenance mode and will…

2 weeks ago