Download and install Zabbix
Before we start we need to install this below:
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install mysql-server
1 Choose your platform
Zabbix version 6.2
OS ubuntu 22.04 64 bit
Zabbix component = Server, Frontend, Agent
Database = MySQL
Web Server = Apache
2 Install and configure Zabbix for your platform
Install Zabbix repository
wget
dpkg -i zabbix-release_6.2-4+ubuntu22.04_all.deb
apt update
Install Zabbix server, frontend, agent
apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
Create initial database Make sure you have database server up and running
mysql -uroot -p
create database zabbix character set utf8mb4 collate utf8mb4_bin;
create user zabbix identified by 'password';
grant all privileges on zabbix.* to zabbix
set global log_bin_trust_function_creators = 1;
quit;
On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password.
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix
Disable log_bin_trust_function_creators option after importing database schema.
mysql -uroot -p
set global log_bin_trust_function_creators = 0;
quit;
Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf
DBPassword=password
Start Zabbix server and agent processes
systemctl restart zabbix-server zabbix-agent apache2
systemctl enable zabbix-server zabbix-agent apache2
3 Start using Zabbix
This is the Zabbix welcome screen. Enter the user name Admin with password zabbix to log in as a Zabbix superuser.
Access to Configuration and Administration menus will be granted.