How to Install Zabbix 6 Monitoring Software on Debian 11
How to Install Zabbix 6 Monitoring Software on Debian 11
Author: Łukasz Bodziony
Email: lukasz@bodziony.net.pl
DevOps Services: bodziony.net.pl
Published: June 2025
Introduction
Zabbix 6 is a powerful open-source monitoring solution for networks, servers, and applications. In this tutorial, Łukasz Bodziony will guide you through installing and configuring Zabbix 6 on a Debian 11 server.
Prerequisites
- Debian 11 server with sudo/root access
- At least 2 GB RAM (4 GB+ recommended)
- Static IP or DNS entry
Step 1: Update System Packages
sudo apt update && sudo apt upgrade -y
Step 2: Install MariaDB and Create Database
sudo apt install -y mariadb-server
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'StrongPassword123';
GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Step 3: Install Zabbix Repository
wget https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-1+debian11_all.deb
sudo dpkg -i zabbix-release_6.0-1+debian11_all.deb
sudo apt update
Step 4: Install Zabbix Server, Web Frontend & Agent
sudo apt install -y zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent
Step 5: Import Initial Schema and Data
sudo zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p zabbix
Step 6: Configure Zabbix Server
Edit the Zabbix server configuration file /etc/zabbix/zabbix_server.conf
and set the database credentials:
DBName=zabbix
DBUser=zabbix
DBPassword=StrongPassword123
Step 7: Start and Enable Services
sudo systemctl restart zabbix-server zabbix-agent apache2
sudo systemctl enable zabbix-server zabbix-agent apache2
Step 8: Complete Web Setup
Open your browser and navigate to http://Your-Server-IP/zabbix
. Follow the on-screen wizard:
- Check prerequisites
- Enter DB details (host: localhost, name: zabbix, user: zabbix, password)
- Configure Zabbix server connection
- Finish and log in (default user:
Admin
, password:zabbix
)
Conclusion
You now have a fully functional Zabbix 6 monitoring system on Debian 11, ready to track hosts, services, and application metrics in real time.
🚀 Host your monitoring setup on a high-performance Linux VPS: netcloud24.com/servers/vps-linux/
Comments
Post a Comment