This guide covers the installation and initial configuration of Zabbix Server, Frontend, and Agent using MySQL database on Ubuntu 24.04.
- This setup is specifically for Ubuntu 24.04 (Noble Numbat).
- Using a different version may require different repository packages.
- Visit this link for other OS/version: https://www.zabbix.com/download?zabbix=7.4&os_distribution=ubuntu&os_version=24.04&components=server_frontend_agent&db=mysql&ws=apache
- Ubuntu Server 24.04
- Root or sudo access
- Internet connectivity
- MySQL Server installed
sudo -s
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.0+ubuntu24.04_all.deb
dpkg -i zabbix-release_latest_7.0+ubuntu24.04_all.deb
apt updateapt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agentLogin to MySQL:
mysql -uroot -pRun the following SQL commands:
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'password';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> set global log_bin_trust_function_creators = 1;
mysql> quit;zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbixmysql -uroot -pmysql> set global log_bin_trust_function_creators = 0;
mysql> quit;Edit the Zabbix server configuration file:
nano /etc/zabbix/zabbix_server.confUpdate the database password:
DBPassword=passwordsystemctl restart zabbix-server zabbix-agent apache2
systemctl enable zabbix-server zabbix-agent apache2Open your browser and go to:
http://10.100.40.2/zabbixFollow the web installer steps:
- Confirm PHP requirements
- Configure DB connection
- Complete setup
Username: Admin
Password: zabbixThis setup provides:
- Zabbix Server (Monitoring Engine)
- Zabbix Frontend (Web UI via Apache)
- Zabbix Agent (Local monitoring)
- MySQL Database backend
