Skip to content

CodeInvisible/zabbix-installer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

162 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Zabbix 7.4 Installer

Release Status Platform Zabbix License

Interactive scripts to install and uninstall Zabbix 7.4 (Server + Frontend + Agent) on Debian or Ubuntu.

Supported Systems

  • Debian 11 (Bullseye)
  • Debian 12 (Bookworm)
  • Ubuntu 22.04 (Jammy)
  • Ubuntu 24.04 (Noble)

Features

  • 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-run or -n)
  • Resume interrupted installations
  • Rollback on failure
  • Secure password generation
  • Optional backup before uninstall
  • Logging to /var/log/zabbix-installer.log

Installation

git clone https://github.com/Nix556/Zabbix-Installer.git
cd Zabbix-Installer
chmod +x install.sh uninstall.sh
sudo ./install.sh

To preview without making changes:

sudo ./install.sh --dry-run

Configuration

The 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.

Uninstall

sudo ./uninstall.sh

Options during uninstall:

  • Backup database and config before removal
  • Purge Apache, MariaDB, PHP
  • Remove installer logs

Restore from Backup

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-server

Schema changes between versions may cause issues - only restore to the same version.

Packages Installed

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

Troubleshooting

Resume a failed install:

sudo ./install.sh
# Select "Resume" when prompted

Check services:

systemctl status zabbix-server zabbix-agent apache2 mariadb

View logs:

cat /var/log/zabbix-installer.log
tail -f /var/log/zabbix/zabbix_server.log

License

MIT

About

Installer for Zabbix 7.4 on Debian 11/12 and Ubuntu 22.04/24.04 with auto configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%