Zabbix is a powerful open-source monitoring solution used by businesses worldwide to monitor IT infrastructure. With the release of Zabbix 7.0, it’s time to upgrade your system to take advantage of new features, enhanced performance, and security improvements. In this guide, we’ll walk you through the process to upgrade Zabbix 6.4 to 7 Ubuntu, ensuring a smooth and efficient server upgrade.
Why Upgrade to Zabbix 7.0?
Zabbix 7.0 introduces several enhancements and new features, including:
- Improved User Interface: A more modern, user-friendly frontend.
- Better Performance: Optimizations for handling large environments.
- New Features: Improved cloud monitoring, enhanced support for modern databases, and more.
- Security Fixes: Patches for security vulnerabilities in previous releases.
Before upgrading, make sure you’re familiar with the Zabbix 7.0 changelog to ensure there are no breaking changes that might impact your environment.
Upgrading your Zabbix server from Version 6.4 to 7.0 can be a straightforward process if you follow the proper steps. Before we dive into the upgrade Zabbix 6.4 to 7 Ubuntu process itself, make sure to complete the following pre-upgrade steps:
To prevent new data from being inserted into the database during the upgrade, stop the Zabbix server:
systemctl stop zabbix-server
If you’re upgrading the Zabbix proxy, agent, or agent 2, make sure to stop these components as well:
systemctl stop zabbix-proxy
systemctl stop zabbix-agent
systemctl stop zabbix-agent2
Backup Your Configuration and Database
It’s crucial to back up your entire Zabbix setup, including configuration files and databases, in case anything goes wrong during the upgrade.
mysqldump -u root -p --all-databases > zabbix_backup.sql
Backup Zabbix Configuration Files
Copy all the Zabbix configuration files to a safe location:
cp -r /etc/zabbix /etc/zabbix_backup
cp -r /usr/share/zabbix/ /etc/zabbix_backup
cp -R /usr/share/zabbix-* /opt/zabbix-backup/
Uninstall your current Zabbix repository package
rm -Rf /etc/apt/sources.list.d/zabbix.list
Additionally, you might need to manually remove any old Zabbix packages from your working directory (e.g., rm zabbix-release_latest+debian12_all.deb) before downloading the new package. This ensures that the package manager doesn’t reuse an outdated version during the upgrade process.
Add Zabbix 7.0 Repository
The first step is to ensure you are using the correct package repositories for Zabbix 7.0.
Download the Zabbix 7.0 repository package:
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
Type Y (or I) to install the version of the Zabbix repository configuration provided by the package maintainer when prompted.
Enable mysql system variable
set global log_bin_trust_function_creators = 1;
This variable controls whether function creators need to be explicitly trusted for binary logging.
Upgrade Zabbix Server and Agent
With the new repository added, you can upgrade Zabbix server and agent packages.
sudo apt install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent
apt install --only-upgrade zabbix-sql-scripts
Upgrade the Zabbix frontend
Next, to upgrade the Zabbix frontend with Apache and restart Apache, run the following commands:
apt install zabbix-apache-conf
systemctl restart apache2
Start zabbix server
systemctl start zabbix-server
Verify the Upgrade
Once everything is restarted, log into the Zabbix frontend and confirm that the upgrade was successful:
Also check with
dpkg -l | grep -E -i zabbix | sort
and verify that all are upgraded to version 7.0
Conclusion
Upgrade Zabbix 6.4 to 7 Ubuntu to enhance performance, security, and features. By following the steps outlined in this guide, you can complete the upgrade process smoothly and ensure that your monitoring system remains reliable and up-to-date.
Always remember to back up your data before starting the upgrade and to test everything thoroughly after the upgrade is complete.
For expert assistance with Upgrade Zabbix 6.4 to 7 Ubuntu, contact our support team for step-by-step guidance, troubleshooting, and a seamless experience.