how to install Zabbix 5 on the centos 74 min read

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me

Hi All, this document shows you how to install Zabbix 5 on the centos 7 system.
Zabbix is one of the best opensource monitoring tools in the current market. Zabbix has become popular as it can monitor anything not only servers, it can monitor network devices, applications. And it supports integration with a lot of applications. Zabbix if fully customizable based on your needs. There are many contributors to Zabbix who provides a template to monitor different applications. Even you can create custom templates to monitor applications.

Zabbix architecture is a server-client arc, where the Zabbix agent needs to be installed respective servers to get monitored. Zabbix supports agentless monitoring for network devices via SNMP. One of the best things about Zabbix is that it supports all types of Operating systems such as Linux, Windows, Mac OS.

Zabbix 5 came with a lot of new stuff from the previous version. Here is the official link from Zabbix on which all new features are involved.

Now let’s move to the installation Part.

Below are the major component for Zabbix
* Apache Webserver
* PHP Framework and extension
* MariaDB Database
* Zabbix Package

Step 1: Install the apache web server.

yum install httpd

Step 2: add the below two lines to in httpd.conf to hide webserver information from the headers as a security measure.

vi /etc/httpd/conf/httpd.conf
ServerSignature Off
ServerTokens Prod

step 3: Restart the apache webserver once you perform the above configuration.

service httpd restart

Step 4: Install the MariaDB server which stores Zabbix data and configuration.

You can choose the same server to install all the components, in my case I’m installing MariaDB on different servers.

Check this link to install MariaDB 10.4 how to install MariaDB 10.4 in Centos 7

Step 5: Once you install DB Server, create a database for Zabbix.

login to MySQL

mysql -u root -p

create database

create database zabbix character set utf8 collate utf8_bin;

Create a database user that has full permission on Zabbix DB.

grant all privileges on zabbix.* to zabbix@'localhost' identified by 'PASSWORD';

if DB server installed on the same server use localhost or else you can use %.


grant all privileges on zabbix.* to zabbix@'%' identified by 'PASSWORD';

Step 6: Now install the zabbix server and its dependency packages.

Add Zabbix repo.

sudo yum install -y

Install the zabbix packages.

sudo yum install zabbix-server-mysql zabbix-agent zabbix-get

sudo yum-config-manager --enable zabbix-frontend
sudo yum -y install centos-release-scl
sudo yum -y install zabbix-web-mysql-scl zabbix-apache-conf-scl

Load the zabbix schema,

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

Step 7: Configure zabbix server

vim /etc/zabbix/zabbix_server.conf



Change DBHost if you have a different DB server.


Step 8: Configure PHP for Zabbix frontend – set timezone.

vim /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
php_value[date.timezone] = Asia/Kolkata

Step 9: Now restart the Zabbix server to make the configuration effect and enable the services to start at boot time.

sudo systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm

sudo systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm

systemctl restart httpd

Step 10: Now navigate to <IP or FQDN>/zabbix in the browser to complete the installation.


Check the dependencies are installed.

Enter the DB Name, DB User, DB Host, DB Password

Now You Successfully installed Zabbix-server

Now login to Zabbix by navigating http://IP/zabbix


The default username and password is Admin and zabbix


© 2020, Techrunnr. All rights reserved.

Questions Answered
Articles Written
Overall Points

Related posts

Leave a Reply