How To Install Zabbix Server 6.4 On Ubuntu 22.04

Zabbix is a strong monitoring tool for network monitor written by php mysql. Ubuntu 22.04 is newly release, so I want to show how to install zabbix server 6.4 on Ubuntu 22.04 server.

####################################

Operating System:

 Ubuntu 22.04

IP Address :

 10.66.10.18

RAM :

 2GB

Disk :

 50GB

Service :

 ZABBIX 6.4 PRE-RELEASE

Host Name :

 zabbix.technologyrss.local
####################################

Step : Ensure Update and upgrade using below command.

root@zabbix:~# lsb_release -a &&  ip r
root@zabbix:~# apt update && apt -y upgrade
root@zabbix:~# apt install -y apt-transport-https lsb-release ca-certificates

Step : Install php on ubuntu 22.04


Sponsored
root@zabbix:~# add-apt-repository ppa:ondrej/php root@zabbix:~# apt update root@zabbix:~# apt install -y php php-mysql php-common php-cli php-common php-json php-opcache php-readline php-mbstring php-gd php-dom php-zip php-curl

Check php is working. Create php infi file.

root@zabbix:~# nano /var/www/html/info.php

Insert below line into info.php file.


Now going to browser and type your server ip address:

http://10.66.10.18/info.php

Step : Download and install zabbix main package.

root@zabbix:~# wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb
root@zabbix:~# dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb
root@zabbix:~# apt update
root@zabbix:~# apt install -y zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent

Step : Install database server mysql.

root@zabbix:~# apt install -y mysql-server
root@zabbix:~# systemctl start mysql
root@zabbix:~# systemctl enable mysql
root@zabbix:~# systemctl status mysql

When installing running then type mysql root password and remember it for use next time.

Step : Login mysql terminal for create database and user password.

root@zabbix:~# mysql -u root -p

Then type mysql root password. Then run below command from mysql terminal

SELECT user,authentication_string,plugin,host FROM mysql.user;
ALTER USER root@localhost IDENTIFIED VIA mysql_native_password;
SET PASSWORD = PASSWORD('P@ssw0rd0@123');
SELECT user,authentication_string,plugin,host FROM mysql.user;
create database zabbix_db character set utf8mb4 collate utf8mb4_bin;
create user zabbix_user@localhost identified by 'zabbix@123';
GRANT CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, SELECT, REFERENCES, RELOAD on *.* TO 'zabbix_user'@'localhost' WITH GRANT OPTION;
grant all privileges on zabbix_db.* to zabbix_user@localhost;
set global log_bin_trust_function_creators = 1;
flush privileges;
q

Step : Export zabbix default database into my created database.

root@zabbix:~# zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix_user -p zabbix_db

Then type my created zabbix_user password, then wait ….

Again going to mysql terminal for change global settings.

root@zabbix:~# mysql -uroot -p

Run below command from mysql terminal.

set global log_bin_trust_function_creators = 0;
flush privileges;
q

Step : Configure zabbix server conf file.

DBName=zabbix_db
DBUser=zabbix_user
DBPassword=zabbix@123

Then save and exit.

Setup nginx web server.

root@zabbix:~# nano /etc/zabbix/nginx.conf

Remove # from below two lines and type your server ip address or domain name.

listen 80;
server_name 10.66.10.18;

Note: If your server have multiple web server running so must be stop it first.

root@zabbix:~# service apache2 stop

Now restart service using below command.

Sponsored
root@zabbix:~# systemctl restart zabbix-server zabbix-agent nginx php8.1-fpm
root@zabbix:~# systemctl enable zabbix-server zabbix-agent nginx php8.1-fpm

Done! All terminal installation. Now going to web browser and process installation.

http://10.66.10.18/setup.php

Click on Next step.

Click on Next step.

Insert below info:

Database name: zabbix_db
User: zabbix_user
Password: *********

Click on Next step.

Click on Next step.

Click on Next step.

Click on Sign in.

If you can any error please go to YouTube for more details video.

Ubuntu Server Admin

Recent Posts

What our users make with Ubuntu Pro – Episode 2

How Vaultara achieved FedRAMP compliance with Ubuntu Pro Ubuntu Pro helps businesses worldwide to innovate…

56 minutes ago

How To Install Zabbix Server 7.4 On Ubuntu 22.04

Zabbix is smart monitoring system on your network. This software written by php mysql. So…

7 hours ago

How To Install Zabbix Server 7.2 On Ubuntu 22.04

Zabbix is smart monitoring system on your network. This software written by php mysql. So…

7 hours ago

SuperTuxKart 1.5 RC2 added GUI option to Choose Vulkan or DirectX 9

SuperTuxKart, the 3D kart racing game, announced the second release candidate for the next 1.5…

7 hours ago

What’s the state of open source adoption in Europe?

New research suggests 86% of European organizations believe open source is valuable for the future…

1 day ago

What are dependencies, and how do you secure them?

Open source software is everywhere. Research shows that around 97% of codebases contain open source…

1 day ago