Skip to content

Latest commit

 

History

History
134 lines (94 loc) · 2.61 KB

File metadata and controls

134 lines (94 loc) · 2.61 KB

📊 Zabbix 7.0 Setup on Ubuntu 24.04

This guide covers the installation and initial configuration of Zabbix Server, Frontend, and Agent using MySQL database on Ubuntu 24.04.


⚠️ Important Note


🧰 Prerequisites

  • Ubuntu Server 24.04
  • Root or sudo access
  • Internet connectivity
  • MySQL Server installed

📦 Step 1: Install Zabbix Repository

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 update

📥 Step 2: Install Zabbix Components

apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

🗄️ Step 3: Configure MySQL Database

Login to MySQL:

mysql -uroot -p

Run 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;

📊 Step 4: Import Initial Schema

zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

🔒 Step 5: Secure MySQL Setting

mysql -uroot -p
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;

⚙️ Step 6: Configure Zabbix Server

Edit the Zabbix server configuration file:

nano /etc/zabbix/zabbix_server.conf

Update the database password:

DBPassword=password

🚀 Step 7: Start and Enable Services

systemctl restart zabbix-server zabbix-agent apache2
systemctl enable zabbix-server zabbix-agent apache2

🌐 Step 8: Access Zabbix Web Interface

Open your browser and go to:

http://10.100.40.2/zabbix

Follow the web installer steps:

  • Confirm PHP requirements
  • Configure DB connection
  • Complete setup

✅ Default Login

Username: Admin
Password: zabbix

Zabbix


📌 Summary

This setup provides:

  • Zabbix Server (Monitoring Engine)
  • Zabbix Frontend (Web UI via Apache)
  • Zabbix Agent (Local monitoring)
  • MySQL Database backend