Interactive scripts to install and uninstall Zabbix 7.4 (Server + Frontend + Agent) on Debian or Ubuntu.
- Debian 11 (Bullseye)
- Debian 12 (Bookworm)
- Ubuntu 22.04 (Jammy)
- Ubuntu 24.04 (Noble)
- Full Zabbix 7.4 stack (server, frontend, agent)
- PHP-FPM with unix sockets
- MariaDB database setup and schema import
- Frontend configuration auto-generated
- Dry-run mode (
--dry-runor-n) - Resume interrupted installations
- Rollback on failure
- Secure password generation
- Optional backup before uninstall
- Logging to
/var/log/zabbix-installer.log
git clone https://github.com/Nix556/Zabbix-Installer.git
cd Zabbix-Installer
chmod +x install.sh uninstall.sh
sudo ./install.shTo preview without making changes:
sudo ./install.sh --dry-runThe installer will prompt for:
| Setting | Default |
|---|---|
| Server IP | auto-detected, or enter your own |
| Database name | zabbix, or enter your own |
| Database user | zabbix, or enter your own |
| Database password | auto-generated, or enter your own |
| MariaDB root password | auto-generated, or enter your own (s for socket auth) |
| Admin password | auto-generated, or enter your own |
| Timezone | system default |
After installation, access the frontend at http://<SERVER_IP>/zabbix with username Admin.
Credentials are saved to /root/.zabbix-credentials.
sudo ./uninstall.shOptions during uninstall:
- Backup database and config before removal
- Purge Apache, MariaDB, PHP
- Remove installer logs
Backups are saved to /root/zabbix-backup-YYYYMMDD-HHMMSS/.
After a fresh install, restore from a backup (same Zabbix version only):
# Restore database
mysql -u zabbix -p zabbix < /root/zabbix-backup-YYYYMMDD-HHMMSS/database.sql
# Restore config (optional)
cp /root/zabbix-backup-YYYYMMDD-HHMMSS/zabbix/zabbix_server.conf /etc/zabbix/
systemctl restart zabbix-serverSchema changes between versions may cause issues - only restore to the same version.
| Component | Packages |
|---|---|
| Zabbix | zabbix-server-mysql, zabbix-frontend-php, zabbix-sql-scripts, zabbix-agent |
| Web | apache2, php-fpm |
| Database | mariadb-server, mariadb-client |
| PHP | php-mysql, php-xml, php-bcmath, php-mbstring, php-ldap, php-gd, php-zip, php-curl |
| Tools | wget, curl, gnupg2, jq, fping, snmpd |
Resume a failed install:
sudo ./install.sh
# Select "Resume" when promptedCheck services:
systemctl status zabbix-server zabbix-agent apache2 mariadbView logs:
cat /var/log/zabbix-installer.log
tail -f /var/log/zabbix/zabbix_server.logMIT