Install Zabbix server step by step in ubuntu 22.04

 Zabbix Documentation

OS: Ubuntu 22.04 LTS

CPU: 2 Core        Memory: 4GB

Server address: http://server IP/zabbix

Login Credential (Default):               User- Admin       Passwd: Zabbix

Prepared by: sahabaz

 


Apt upgrade -y

Installing Zabbix Repository

wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb

dpkg -i zabbix-release_6.4-1+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

Creating initial database (Maria DB/Mysql)

apt install mariadb-server

systemctl start mariadb.service

mysql_secure_installation        (Mysql Password: *********)

mysql -uroot -p

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;

 

Zabbix server host importing initial schema and data.

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

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

Configure the database for the Zabbix server.

Edit file /etc/zabbix/zabbix_server.conf

DBPassword= ******@123

Starting Zabbix server and agent processes

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

Open Zabbix UI web page

http://server IP/zabbix







Comments

Popular posts from this blog

GLPI- Digital Asset and Ticket management server installation process step by step in Ubuntu 22.04

Transfer FortiGate firewall log into the Wazuh server via Rsyslog