Zabbix is a free and open source monitoring tool which is used to monitor and track the availability & performance of servers, network devices and other IT assets which are on network.
Zabbix uses database like MySQL, MariaDB, Oracle and IBM DB2 to store its data. Zabbix web interface is written in PHP.
Some of its key features are listed below :
- Monitor everything which is on network like Servers, applications, database instance and network devices.
- Zabbix provides Web based administration interface.
- Monitoring CPU utilization of a particular process or a group of process ( proc.cpu.util)
- Using low-level discovery rules, zabbix can discover Vmware hypervisor ( ESXI ) and Virtual machines.
- Zabbix also supports agentless monitoring
- Monitoring of database servers like MySQL, PostgreSQL, Oracle and Microsoft SQL Server.
- Zabbix can also perform the task of capacity planning for your environment.
- Zabbix is Open Source so no cost involved and can be deployed on small and large environment.
- Hardware Monitoring using Zabbix via IPMI credentials.
- Network Device monitoring using snmp agents.
In this article we will install the latest version of Zabbix 3.0 on CentOS 7.x and RHEL 7.x. Below are the details of my server on which i will install Zabbix.
- Hostname = zabbix.linuxtechi.com
- IP Address = 192.168.1.7
- OS = CentOS 7.x / RHEL 7.x
Before Starting Installation, first update your system using below command :
Step:1 Enable EPEL and Zabbix Repository
Zabbix package is not available in the default yum repository, so we will enable zabbix and epel repository using below commands.
Step:2 Install Zabbix Server, Database, Web Server and PHP packages
Use the below command to install rpm package of Zabbix server, Database Sever (MariaDB) , Web Server ( http) and PHP.
Step:3 Configure Zabbix Database.
Start the Database (MariaDB) service
Use ‘mysql_secure_installation‘ command to set the root password of mariadb database and configure other parameters like ‘Remove anonymous users‘, ‘Disallow root login remotely‘ and ‘Remove test database and access to it‘
Now create the Zabbix Database (zabbix_db) and database user (zabbix_user) and grant all privileges to the user on the Zabbix database.
Now import the database Schema using below commands,
Step:4 Edit Zabbix Server Configuration file
Edit the Zabbix Server’s config file (/etc/zabbix/zabbix_server.conf) and specify the database name for zabbix , database user name & its password.
Save & exit the file.
Configure PHP Setting
Set the below parameters in the PHP config file (/etc/php.ini )
Allow the ports in the Firewall
Set the below Selinux rule.
Start the Zabbix and Web Server Service and make sure it is enable across the reboot.
Step:5 Browse the Zabbix Web interface using below URL
http://192.168.1.7/zabbix/ or http://zabbix.linuxtechi.com/zabbix
Replace the IP address or hostname as per your setup.
Click on ‘Next step’
On this Step Zabbix Pre-requisites are checked and verified
Click on ‘Next step’
Specify the Zabbix Database name, database user and its password.
Click on ‘Next step’ to continue.
Specify the Zabbix Server details and Port number.
Click on ‘Next step’ to continue.
Pre-installation summary of Zabbix Servers, click on ‘Next step’ to continue.
As we can see that Zabbix installation is completed successfully
When we click on ‘finish’ , it will re-direct us to the Zabbix web interface Console.
Use user name as ‘admin‘ and password ‘zabbix‘
Zabbix Server Dashboard :
Step:6 Add a node to Zabbix Server for Monitoring.
Let’s assume i want to add my Ubuntu 16.04 Machine to Zabbix Server for monitoring. Login to the machine and perform the following tasks .
Edit the Agent file and specify the Zabbix Server address.
Start Zabbix Agent Service
Now Go to the Zabbix Web Interface .
Click on Configuration —> Hosts –> Create Host
Specify the Host name, IP address and Group names. In Templates Tab, search appropriate templates and click on Add.
To View the events for all the hosts or a particular host, Click on Monitoring —> Triggers
That’s it, Basic Monitoring and Configuration is Completed. Explore the Zabbix and have fun 
- Log in to post comments












