Zabbix 7 is an enterprise-grade open-source monitoring solution that collects metrics from servers, network devices, cloud services, and applications. It supports SNMP, JMX, IPMI, and custom monitoring scripts. This guide installs Zabbix 7 on Ubuntu 26.04 LTS with MySQL and Nginx.
Tested and valid on:
- Ubuntu 26.04 LTS
Prerequisites
- Ubuntu 26.04 LTS with MySQL 9 and Nginx installed
- A user with sudo privileges
- Port 10051 open in the firewall (Zabbix agent)
Step 1 – Add the Zabbix Repository
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-2+ubuntu$(lsb_release -rs)_all.deb
sudo dpkg -i zabbix-release_7.0-2+ubuntu$(lsb_release -rs)_all.deb
sudo apt update
Step 2 – Install Zabbix Server, Frontend, and Agent
sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent -y
Step 3 – Create the MySQL Database
sudo mysql
CREATE DATABASE zabbix CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'zabbix'@'localhost' IDENTIFIED BY 'ZabbixPass2026!';
GRANT ALL PRIVILEGES ON zabbix.* TO 'zabbix'@'localhost';
FLUSH PRIVILEGES;
exit
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -u zabbix -p zabbix
Step 4 – Configure Zabbix Server
sudo nano /etc/zabbix/zabbix_server.conf
Set:
DBPassword=ZabbixPass2026!
Step 5 – Start Services
sudo systemctl restart zabbix-server zabbix-agent nginx php8.4-fpm
sudo systemctl enable zabbix-server zabbix-agent nginx
Step 6 – Configure Nginx for Zabbix
sudo nano /etc/zabbix/nginx.conf
Uncomment and set:
listen 80;
server_name zabbix.example.com;
Step 7 – Complete Installation via Web
Visit http://zabbix.example.com/zabbix. Follow the setup wizard, enter your database credentials, and log in with Admin / zabbix. Change the default password immediately.
Conclusion
Zabbix 7 is installed on Ubuntu 26.04 LTS. Add hosts by installing the Zabbix agent, configure templates for automatic monitoring, and set up notification media (email, Slack, PagerDuty) for alerts.