X

How To Install Zabbix Server 6.0 On Centos 8

In this tutorial how to install zabbix server 6.0 on Centos 8. Zabbix is an open source server resource and network monitoring tools.

How To Install Xen Orchestra On Ubuntu 18.04 For Manage XEN Server

How To Install KVM Server on CentOS 7 – Apache Cloud Stack KVM

####################################################
Operating system: Centos 8
IP address : 192.168.0.117
RAM  : 2GB
DISK space : 50GB
vCPU  : 2
Service  : ZABBIX 6.0 Alpha
PHP version : 7.4
Mysql  : 5.7
Hostname : zabbix-server.technologyrss.local
####################################################

Step #01: Install zabbix 6.0.

cat /etc/redhat-release && ip r
yum -y update
rpm -Uvh https://repo.zabbix.com/zabbix/5.5/rhel/8/x86_64/zabbix-release-5.5-1.el8.noarch.rpm
dnf clean all
dnf install zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent

Install mysql database server.

wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
rpm -ivh mysql57-community-release-el7-9.noarch.rpm
yum -y install mysql-server
systemctl start mysqld
systemctl enable mysqld

Login mysql terminal using blank password for setup root password.

mysql -uroot -p
Then run below command
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'Passw0rd@123'; //mysql 5.7 reset password command
Query OK, 0 rows affected (0.01 sec)
\q

Check zabbix repo is enable.

vi /etc/yum.repos.d/zabbix.repo

as like below

[zabbix-frontend]
...
enabled=1
...

Step #02: Configure database (you can replace user password from zabbix@123).

mysql -uroot -p

Then create database and user using below command.

create database zabbix_db character set utf8 collate utf8_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;
FLUSH PRIVILEGES;

Step #03: Import zabbix default database.

zcat /usr/share/doc/zabbix-sql-scripts/mysql/create.sql.gz | mysql -uroot -p zabbix_db

Default mysql root password is blank, not needed type any password.

Step #04: Add database name, database user and database password

nano /etc/zabbix/zabbix_server.conf

Insert below three lines into this file, but must be replace database name and database user.

DBName=zabbix_db
DBUser=zabbix_user
DBPassword=zabbix@123

Step #05: Setup server ip address.

vi /etc/nginx/conf.d/zabbix.conf

Add your time zone from last line

listen 80;
server_name 192.168.0.117

Step #06: Restart and enable all services.

systemctl restart zabbix-server zabbix-agent nginx php-fpm
systemctl enable zabbix-server zabbix-agent nginx php-fpm

Allow firewall using below command.

firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --list-all
firewall-cmd --reload

Access your server ip address and complete web installation process.

http://192.168.0.117/

Now install from web browser then login using default user name and password.

 

Click Next step

 

Check of pre-requisites, if all is ok then click Next step

Configure database connection like database name, user and password then click Next step

click Next step

Click Finish

Now using default user name and password.

Username : Admin (Must be use ‘A’ is capital)

Password : zabbix

 

If needed more help, so please see my YouTube channel for more information.

5 1 vote
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.
Leave a Comment