Zabbix is an enterprise-class open source distributed monitoring solution that can be used to monitor and track performance and availability of network servers, devices and other IT resources. It supports distributed and WEB monitoring, auto-discovery, and more.
Install Zabbix Server

I tested this how-to On CentOS 7 minimal server, although it should work on other RHEL/Scientific Linux 7.x versions.

For the testing purpose, I will use two machines.

Zabbix Server System:

Operating system: CentOS 7 64bit server
IP Address:
Hostname: zabbixserver

Zabbix Client System:

Operating system: CentOS 7 64bit server
IP Address:
Hostname: zabbixclient

First let us start from server side.

Before installing Zabbix, we should have install and configure LAMP stack.

Zabbix is not available in the default repositories of CentOS. So, we will add EPEL and Zabbix official repository in order to install Zabbix server.

To install EPEL repository, run the following command:

yum install epel-release

Configure the ZabbixZone package repository and GPG key using command:

Now, Install Zabbix server and agent using command:

Edit file /etc/httpd/conf.d/zabbix:

vi /etc/httpd/conf.d/zabbix.conf

Update your timezone:

Restart the httpd

Create MySQL database and user for Zabbix

Login to MariaDB prompt with command:

Import zabbix templates to Zabbix database

Let us import the following templates. It will ask you the zabbixuser’s password during importing templates.

Configure Zabbix server

Edit file /etc/zabbix/zabbix_server.conf,

vi /etc/zabbix/zabbix_server.conf

Set the database name, user and password which you’ve created earlier. If the lines are commented out, uncomment and set the correct values.


Save and close the file.

Now, we have to set Zabbix server to monitor itself.

To do that, edit file /etc/zabbix/zabbix_agentd.conf,

vi /etc/zabbix/zabbix_agentd.conf

Do the following changes.


## Line 95 – Specify Zabbix server ##


## Line 136 – Specify Zabbix server ##


## Line 147 – Specify Zabbix server Hostname or IP address ##

Save and close the file.
Adjust PHP settings

We should adjust phip.ini file as per zabbix recommended settings.

Edit file php.ini,

vi /etc/php.ini

Set the values as shown below. If the lines doesn’t exist, add them.

max_execution_time = 600
max_input_time = 600
memory_limit = 256M
post_max_size = 32M
upload_max_filesize = 16M
date.timezone = Asia/Kolkata

Save and close the file.
Adjust Firewall and SELinux settings

Adjust iptables to allow the zabbix ports 10050 and 10051.

If you use SELinux, run the following command to allow Apache to communicate with Zabbix.

Allow Zabbix web console for particular IP range (Optional)

Edit file /etc/httpd/conf.d/zabbix.conf,

vi /etc/httpd/conf.d/zabbix.conf

In my config case



Save and close the file. Start/Restart zabbix and httpd services and make them to start automatically on every reboot.

Configure Zabbix via Web console

We have completed the installation and configuration part. Now let us configure the zabbix web console.

Navigate tohttp://ip-address/zabbix or http://domain-name/zabbix.

screenshot_20161130_225628 screenshot_20161130_225724 screenshot_20161130_225807 screenshot_20161130_230608


Please  login with  L admin/zabbix


Activate monitoring on the server tiself

Initially, the zabbix server is deactivated from being monitored.

To activate it, go to Configuration -> Hosts. Select the host (zabbix server) and choose Activate selected from the drop-down box and click Go.


Configure the   Client 

Install zabbix repo from zabbix   site  using the  redhat   repo


Install   Zabbix  Agent 

Configure  Client 

add  the  zabbix Server IP to agent config


Enable  and  restart Zabbix Agent 

Add Monitoring hosts

Go to your zabbix server dashboard.

To add a monitoring target, navigate to Configuration -> Hosts. Click on Create Host on the right side.

Enter  Hostname and  IP


Add Template :


Hosts   Display


You are done, this example can be used to add the Centos7  agent  with Linux template. with same  way you can add  Windows and  other Linux   Distros.



Please enter your comment!
Please enter your name here