X
    Categories: Zabbix

How To Install Zabbix 5.0 On Centos 8

Now I want to share how to install Zabbix 5.0 for your Centos 8 vps or local server. Zabbix new release is 5.0 for LTS. Zabbix is an open source network monitoring tools.

How To Install osTicket v1.14 On Ubuntu 20.04

How To Install WordPress On Ubuntu 20.04

My server info :
Server IP : 10.66.11.5
Disk : 25 GB
RAM : 1GB
vCPU : 2
Service : ZABBIX 5.0
Web : Apache
Database : MariaDB
Php : 7.2 Must

Step #01 : Must be server update then install httpd web server.

[root@Zabbix-Srv ~]# yum update
[root@Zabbix-Srv ~]# dnf install httpd
[root@Zabbix-Srv ~]# systemctl start httpd
[root@Zabbix-Srv ~]# systemctl enable httpd
[root@Zabbix-Srv ~]# firewall-cmd --permanent --add-service=http
[root@Zabbix-Srv ~]# firewall-cmd --permanent --list-all
[root@Zabbix-Srv ~]# firewall-cmd --reload

Step #02 : Install database server MariaDB.

[root@Zabbix-Srv ~]# dnf install mariadb-server
[root@Zabbix-Srv ~]# systemctl start mariadb
[root@Zabbix-Srv ~]# systemctl enable mariadb
[root@Zabbix-Srv ~]# mysql -uroot -p

Then goto mariadb terminal and create database, user name and password.

MariaDB [(none)]> create database zabbix_db character set utf8 collate utf8_bin;
MariaDB [(none)]> create user zabbix_user@localhost identified by 'passw0rd123';
MariaDB [(none)]> grant all privileges on zabbix_db.* to zabbix_user@localhost;
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> \q

Step #03 : Download Zabbix 5.0 version and install.

[root@Zabbix-Srv ~]# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
[root@Zabbix-Srv ~]# dnf clean all
[root@Zabbix-Srv ~]# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent
[root@Zabbix-Srv ~]# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix_user -p zabbix_db

Then edit  /etc/zabbix/zabbix_server.conf file.

[root@Zabbix-Srv ~]# vi /etc/zabbix/zabbix_server.conf

Must be added below lines into this file.

DBName=zabbix_db
DBUser=zabbix_user
DBPassword=passw0rd123

Press Esc type :wq then press Enter for save this file.

Change server time zone as your location. Open /etc/php-fpm.d/zabbix.conf this file and edit.

[root@Zabbix-Srv ~]# vi /etc/php-fpm.d/zabbix.conf

Like this below

php_value[date.timezone] = Asia/Dhaka

Press Esc type :wq then press Enter for save this file.

Step #04 : All service restart using below command.

[root@Zabbix-Srv ~]# systemctl restart zabbix-server zabbix-agent httpd php-fpm
[root@Zabbix-Srv ~]# systemctl restart zabbix-server
[root@Zabbix-Srv ~]# systemctl status zabbix-server.service
[root@Zabbix-Srv ~]# systemctl enable zabbix-server zabbix-agent httpd php-fpm

Change selinux status. Open /etc/selinux/config file and disable it.

[root@Zabbix-Srv ~]# vi /etc/selinux/config

Set it like below

SELINUX=disabled

Press Esc type :wq then press Enter for save this file.

Then reboot your server and browse server ip address for complete installation process.

[root@Zabbix-Srv ~]# reboot

http://10.66.11.5/zabbix/

Zabbix default settings
User Name : Admin [‘A’ must be capital]
password : zabbix

Step #05 : Now step by step complete installation process from browser.

This is welcome page for Zabbix 5.0. click Next step 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step #06 : This is check of pre-requisites.

so click Next step

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step #06 : Input database information like database name, database use & database password.

So now enter this details. Click Next Step

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step #07 : Zabbix server details like host, port and if you want to any name here.

Click Next step

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step #08 : Pre-installation summary. Already you enter details so just see this is ok.

Click Next step

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step #09 : Installation completed and see Congratulation! message.

Click Finish.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step #10 : Then you see come login page and enter default user name and password.

User Name : Admin [‘A’ must be capital]
Password : zabbix

Finally you see Zabbix 5.0 new dashboard as like below.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If you see any installation problem so please see my YouTube channel for more video. Please subscribe my channel for more update.

0 0 votes
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.

View Comments (2)

  • [root@Zabbix-Srv ~]# mysql -uroot -p
    

    after enter this i put root p.w but the following message occur :ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Leave a Comment