Skip to content

Upgrade Zabbix

Description

When viewing the Zabbix dashboard, you may see the message "Zabbix Server version : New Version available"

At your own risk, you can upgrade the Zabbix components.

If using a cloud provider, such as Digital Ocean, you can create a snapshot of your droplet/server that you can restore from in case of any major issues during the upgrade.

You may also have a different backup policy that you should follow.

Note that upgrading may create more problems than it fixes. My personal approach to this problem, is to install a new version of Zabbix on a new server and then transfer only the customisations and configurations that I still need over to my new Zabbix server.

Stop services

SSH onto your Zabbix server, and/or hosts that you want to upgrade and stop the relevant services.

#
#
#
service stop zabbix-server
service stop zabbix-agent
service stop zabbix-mysql

Upgrade MySQL

If using MySQL on your Zabbix server, then you can upgrade it also.

apt update
apt upgrade mysql-server

Upgrade Zabbix components

Download the latest Zabbix repository for your operating system and install the package.

#
#
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-2+ubuntu24.04_all.deb
dpkg -i zabbix-release_7.0-2+ubuntu24.04_all.deb

Upgrade each component.

#
apt install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

Or you can upgrade only one component, such as a Zabbix Agent on one of your hosts.

#
apt install --only-upgrade zabbix-agent

Reboot server/host.

#
reboot now

After reboot, your MySQL and Zabbix processes should auto start. If not,

#
#
#
service start zabbix-mysql
service start zabbix-server
service start zabbix-agent

And check that their statuses are ok.

Note that the above commands relate to my operating system and Zabbix setup. The above commands are likely to change depending on which version of Zabbix is now the latest. Always refer to the official Zabbix download page.