This section provides instructions on upgrading from Zabbix 7.0.x to the latest version of Zabbix 7.2.x using official Zabbix packages for Debian/Ubuntu.
Before upgrading, please review the relevant upgrade notes and ensure that your system meets the requirements for Zabbix 7.2.
Consider running two parallel SSH sessions during the upgrade: one for executing the upgrade steps and another for monitoring server/proxy logs. For example, run tail -f zabbix_server.log
or tail -f zabbix_proxy.log
in the second session to view the latest log entries and possible errors in real time. This can be critical for production instances.
For instructions on upgrading between Zabbix 7.2.x minor versions (for example, from 7.2.1 to 7.2.3), see Upgrade between minor versions.
Stop Zabbix server to make sure that no new data is inserted into database:
If upgrading Zabbix proxy, agent, or agent 2, stop these components too:
Back up your existing Zabbix database to safeguard against upgrade failures (for example, disk space issues, power loss, or unexpected problems).
Back up existing Zabbix configuration files, PHP files, and Zabbix binaries.
For configuration files, run:
mkdir /opt/zabbix-backup/
cp /etc/zabbix/zabbix_server.conf /opt/zabbix-backup/
cp /etc/apache2/conf-enabled/zabbix.conf /opt/zabbix-backup/
For PHP files and Zabbix binaries, run:
Before proceeding with the upgrade, uninstall your current Zabbix repository package:
Then, install the latest repository configuration package to ensure compatibility with the newest packages and to include any recent security patches or bug fixes.
On Debian 12, run:
wget https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb
dpkg -i zabbix-release_latest+debian12_all.deb
For older Debian versions, replace the link above with the correct one from Zabbix repository. Note, however, that packages for those versions may not include all Zabbix components. For a list of components included, see Zabbix packages.
On Ubuntu 24.04, run:
wget https://repo.zabbix.com/zabbix/7.2/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest+ubuntu24.04_all.deb
dpkg -i zabbix-release_latest+ubuntu24.04_all.deb
On Ubuntu 22.04, run:
wget https://repo.zabbix.com/zabbix/7.2/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest+ubuntu22.04_all.deb
dpkg -i zabbix-release_latest+ubuntu22.04_all.deb
For older Ubuntu versions, replace the link above with the correct one from Zabbix repository. Note, however, that packages for those versions may not include all Zabbix components. For a list of components included, see Zabbix packages.
You may see a prompt about the Zabbix repository configuration:
Configuration file '/etc/apt/sources.list.d/zabbix.list'
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** zabbix.list (Y/I/N/O/D/Z) [default=N] ?
Enter Y
(or I
) to install the package maintainer's version of the Zabbix repository configuration.
Then, update the repository information:
To upgrade Zabbix components, run:
mysql
with pgsql
in the command.server
with proxy
in the command.zabbix-agent
with zabbix-agent2 zabbix-agent2-plugin-*
in the command.Upgrading Zabbix agent 2 with the apt install zabbix-agent2
command could lead to an error. For more information, see Known issues.
You may see a prompt about the Zabbix server (or proxy) configuration:
Configuration file '/etc/zabbix/zabbix_server.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** zabbix_server.conf (Y/I/N/O/D/Z) [default=N] ?
Enter the option that best fits your situation. For example, enter D
to compare the current and new configuration, then decide if you want to install the package maintainer's version (Y
or I
).
Then, to upgrade Zabbix frontend with Apache, run:
Review the relevant upgrade notes to check if any changes in the configuration parameters are necessary.
For new optional parameters, see the What's new page.
Start the upgraded Zabbix components:
systemctl start zabbix-server
systemctl start zabbix-proxy
systemctl start zabbix-agent
systemctl start zabbix-agent2
After the upgrade, you may need to clear web browser cookies and web browser cache for the Zabbix web interface to work properly.
It is possible to upgrade between Zabbix 7.2.x minor versions (for example, from 7.2.1 to 7.2.3).
First, update the repository information:
Then, to upgrade all Zabbix components, run:
'zabbix*'
with 'zabbix-server*'
in the command.'zabbix*'
with 'zabbix-proxy*'
in the command.'zabbix*'
with 'zabbix-agent*'
in the command.'zabbix*'
with 'zabbix-agent2*'
in the command.