How to Install Zabbix 2.2 LTS (Network Monitoring Tool) on CentOS, RedHat and Fedora

Zabbix is an open source software for networks and application monitoring. Zabbix provides agents to monitor remote hosts as well as Zabbix includes support for monitoring via SNMP, TCP and ICMP checks. Click here to know more about zabbix.


This article will help you to step by step install Zabbix 2.2 Server on CentOS/RHEL 7/6/5 and Fedora Systems. Before starting installation read below basic requirements to run Zabbix 2.2.

  • Apache: 1.3.12 or later.
  • PHP: 5.3.0 or later.
  • MySQL: 5.03 or later.
  • OpenIPMI: Required for IPMI support.
  • libssh2: Required for SSH support. Version 1.0 or higher.
  • fping: Required for ICMP ping items.
  • libcurl: Required for web monitoring.
  • libiksemel: Required for Jabber support.
  • net-snmp: Required for SNMP support.

Step 1: Set Up Apache, MySQL and PHP

In order to use Zabbix we required a Web Server, database server and PHP to work. In this steps we are going to set up these services, You many skip this step if you have already configured it.

Install All Services

# yum install httpd httpd-devel 
# yum install mysql mysql-server 
# yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml

Start All Services

# service httpd start
# service mysqld start

MySQL Initial Setup

Run following command to setup mysql initially and secure it

# mysql_secure_installation

Step 2: Configure Yum Repository

Before installing Zabbix first configure zabbixzone rpm repository in our system using following commands.

CentOS/RHEL 7:
# rpm -Uvh

CentOS/RHEL 6:
# rpm -Uvh

CentOS/RHEL 5:
# rpm -Uvh

Step 3: Install Zabbix Server with MySQL

Use following command to install Zabbix using mysql database support packages on your system.

# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway

Step 4: Setup Zabbix Apache Configuration

Zabbix creates its own apache configuration file /etc/httpd/conf.d/zabbix.conf. Edit this file and just update timezone. More timezone’s

  php_value date.timezone Asia/Kolkata

After changing value restart Apache service.

# service httpd restart

Step 4: Create Zabbix MySQL Database

This installation is using mysql as backend of zabbix, So we need to create MySQL database and User for zabbix installation.

# mysql -u root -p

mysql> GRANT ALL PRIVILEGES on zabbix.* to 'zabbix'@'localhost' IDENTIFIED BY 'SECRET_PASSWORD';
mysql> quit

After creating database restore the default mysql database provided by zabbix. These files can be found at /usr/share/doc/zabbix-server-mysql-<version>/create/ directory.

# mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.2.8/create/schema.sql
# mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.2.8/create/images.sql
# mysql -u zabbix -p zabbix < /usr/share/doc/zabbix-server-mysql-2.2.8/create/data.sql

Step 5: Start Zabbix Server

After completing above setup, let’s start Zabbix server using following command.

# service zabbix-server start

After starting zabbix service, let’s go to Zabbix web installer and finish the installation.

Step 5: Start Zabbix Web Installer

Zabbix web installer can be access using following url, Change FQDN as per you setup.

and follow the steps as per given screen shots below.

Zabbix Setup Welcome Screen

This is welcome screen of zabbix web installer. Go forward by click on next button.

Zabbix installation step 1

Check for pre-requisities

Check if your system have all required packages, if everything is ok click next.

Zabbix installation step 2

Configure DB Connection

Enter database details created in Step #4 and click Test Connection. If database connection is correct, it will show ok message. After that click next.

Zabbix installation step 3

Zabbix Server Details

Zabbix installation step 4

Pre-Installation Summary

This step will show the summary you have entered previous steps, so simply click next.

Zabbix installation step 5

Install Zabbix

Zabbix installation step 6

Zabbix Login Screen

Login to Zabbix using below default credentials.

   Username:  admin
   Password:  zabbix

Zabbix installation step 7

Congratulation! Your Zabbix setup has been completed. Read our next article to Install Zabbix Agent and Add Host in Zabbix Server.


Founder of I love to work with Linux and other open source application. Also I like to share knowledge with my friends and other Linux users. Follow me on Twitter, Add me on Google+ or Like Facebook page.


  1. Nice tutorial. It helps me and I wish I will help to others. …. thanks

  2. These instructions fail off the top.

    sudo rpm -Uv
    rpm: RPM should not be used directly install RPM packages, use Alien instead!
    rpm: However assuming you know what you are doing…
    error: Failed dependencies:
    gpg is needed by zabbixzone-release-0.0-1.noarch

    I can’t find a package called gpg to install either to resolve this.

  3. awesome doc, thx a million.
    one update worth noting is the yum repo
    url above is no longer good.
    I used:
    rpm –import
    rpm -Uv

    thx again!

  4. I am not able to install latest zabbix version 2.2.1. problem we are facing while installing zabbix rpm repository (# rpm -ivh
    Could you help to sort out this issue.

  5. hi, nice tutorial, is possible to run zabbix from a remote database server? 1 node for apache, another node for databases, thanks in advance.

  6. Your tutorial is very helpful, thank you!

  7. One small update . need to edit the below line , then only its working

    # vi /etc/zabbix/zabbix_server.conf

  8. Nice tutorial Thanks !
    I just have one question, if I want to install zabbix proxy, how can I do?

  9. Thanks a lot


  10. why when im finish install frontend zabbix.. i cant log in ?

  11. username = Admin
    password = zabbix

    why i cant log in use this username and password ??

  12. Username for login at the end should be “Admin” with capital A

  13. hello.. i want to ask why my zabbix_server.log be like this “13357:20140801:031609.456 [Z3001] connection to database ‘zabbix’ failed: [1045] Access denied for user ‘zabbix’@’localhost’ (using password: NO) ”

    Thank you

  14. Very nice! Thank you for sharing.

  15. Hi Rahul,

    Thanks for sharing this great article. It is really helpfull.

    I am a newbie in monitoring as well as in zabbix.

    I have created a web scenario for checking web app availability and login check for one of a web application for testing purpose. I have created web scenario by using real life web scenario on zabbix official documentation. But it is not working for me. If i put incorrect password in variable, still it shows no error.

    Is there any tutorial created by you for web scenario, please share it. It is very urgent need.


Leave a Reply


Support us!

If you like this site please help and make click on any of these buttons!