This script automates the upgrade/installation of Zabbix Agent 7.2 on Linux systems.
- Automatically detects and supports both Red Hat-based (RHEL/CentOS) and Debian-based (Ubuntu/Debian) systems
- Creates backups of existing Zabbix agent configurations before making changes
- Installs Zabbix Agent 7.2, zabbix-get, and zabbix-sender
- Enables and starts the Zabbix agent service automatically
Make the script executable:
chmod +x upgrade_zabbix.sh
Run the script as root:
sudo ./upgrade_zabbix.sh
- The script requires internet access to download the Zabbix repositories and packages
- Configuration backups are stored in
/backup/zabbix-agent2-config
- The script removes any existing Zabbix repositories before installing the new ones
- Last updated: April 2025 for Zabbix 7.2