Install Zabbix (Network / Server Monitoring) on CentOS / RHEL

ZabbixZabbix 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.

Zabbix - Welcome Page
Zabbix – Welcome Page

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

Zabbix Setup - Pre-requisites
Zabbix Setup – 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

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.


Share This Post

  • Javed Shaikh

    Hi Thanks for the article..I have installed the zabbix on my RHEL 6.5. I have done all the mentioned configuration but when I login to zabbix server the Zabix server running value is always showing No. I restarted the zabbix-server from the server several times, but immediately after restarting when I checked the status of zabbix-server it always shows as stopped. Please help