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
Sponsored

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.

Sponsored
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

JetPack 4 EOL – how to keep your userspace secure during migration

NVIDIA JetPack 4 reached its end-of-life (EOL) in November 2024, marking the end of security…

3 days ago

Source to production: Spring Boot containers made easy

This blog is contributed by Pushkar Kulkarni, a Software Engineer at Canonical. Building on the…

4 days ago

Spring support available on Ubuntu

This blog is contributed by Vladimir Petko, a Software Engineer at Canonical. The release of…

4 days ago

Live Linux kernel patching with progressive timestamped rollouts

The apt package manager is responsible for installing .deb packages on Ubuntu LTS (long-term support)…

4 days ago

Chiseled Ubuntu containers for OpenJRE 8, 17 and 21

Today we are announcing chiseled containers for OpenJRE 8, 17 and 21 (Open Java Runtime…

4 days ago

Introducing Canonical builds of OpenJDK

Java has long been the most popular language for software development in large enterprises, with…

5 days ago