How To Install Zabbix Server 2.2 on CentOS 6 / RHEL 6

This post may or may not work. Please use at your own risk. Visit How To Install Icinga 2 on CentOS 7 / RHEL 7 for the latest documentation.

Zabbix is an open source software for monitoring the network services, servers and other network devices, created by Alexei Vladishev. Zabbix back end written in C and uses PHP for front end, supports MySQL, PostgreSQL, SQLite, Oracle or IBM DB2 databases.


  1. It can verify the availability of the standard services such as SMTP or HTTP with out installing any software on remote host.
  2. It can also monitor CPU, Memory, Disk and other resource on Windows or Unix hosts by installing zabbix client on it.
  3. It also offers support for monitoring via SNMP,TCP and ICMP.
  4. It supports real-time notifications

This guide will help you to setup the Zabbix on CentOS / RHEL.


Install the latest release packages, this contains the repository configuration.


rpm -Uvh


rpm -Uvh

Install MySQL by using the following command

yum -y install mysql-server mysql-devel

Start MySQL server.

/etc/init.d/mysqld start

Install Zabbix

Install the following packages, it will install the Zabbix server and web with MySQL.

yum -y install zabbix-server-mysql zabbix-web-mysql

Create and Import Database

If you are configuring the MySQL for the first time; take a loot at how to secure the MySQL.

[[email protected] ~]# mysql -u root -p
create database zabbix;
GRANT ALL ON zabbix.* TO [email protected] IDENTIFIED BY 'zabbixpassword';
flush privileges;

Import schema and data.

mysql zabbix -u root -p < /usr/share/doc/zabbix-server-mysql-2.2.4/create/schema.sql

mysql zabbix -u root -p < /usr/share/doc/zabbix-server-mysql-2.2.4/create/images.sql

mysql zabbix -u root -p < /usr/share/doc/zabbix-server-mysql-2.2.4/create/data.sql

Start the Zabbix Server service.

/etc/init.d/zabbix-server start

Configure Zabbix FrontEnd:

vi /etc/httpd/conf.d/zabbix.conf
# php_value date.timezone Europe/Riga

Change the value data.timezone depends on your timezone.

Re-start the apache server to take effect of the above configuration.

/etc/init.d/httpd restart

 Setup Zabbix

Visit the following url to start setting up the Zabbix http://your-ip-address/zabbix. Click Next to continue.

Install Zabbix Server 2.2 on CentOS 6 - Welcome Page
Install Zabbix Server 2.2 on CentOS 6 – Welcome Page

Zabbix setup will check the prerequisites, will give you the status like below.

Install Zabbix Server 2.2 on CentOS 6 - Pre-requisites
Install Zabbix Server 2.2 on CentOS 6 – Pre-requisites

Enter the database information.

Zabbix Setup - Database Information
Zabbix Setup – Database Information

Configure the server information.

Zabbix Setup - Server Information
Zabbix Setup – Server Information

Check out the installation summary.

Zabbix Setup - Installation Summary
Zabbix Setup – Installation Summary

Finish the setup.

Zabbix Setup - Finish
Zabbix Setup – Finish

Access Zabbix

Login with default credential (Admin/zabbix)

Zabbix Setup - Login
Zabbix Setup – Login

This how the Zabbix dashboard look like.

Zabbix Setup - Dashboard
Zabbix Setup – Dashboard

That’s All!. You have successfully configured the Zabbix server, now configure the zabbix agent on the client machine for monitoring.

You might also like