Hello there! This is an opening article for a cycle about how to learn and master Zabbix server. In all of our lessons we will use a CentOS as operating system, the one of the most popular linux distributions in corporative environment. Remember, in every article, followed by video, you will see every detail of deployment, from newly installed OS to a working solution, without any missing parts. So if you want to repeat the lesson by yourself – all you have to do is to copy commands from this article to your preferred ssh client. Of course, if you have any questions, feel free to ask them in comments.

So, why Zabbix? As for me, I think it is one of the most powerful, customizable and feature rich systems in the market. But, hey, it is free! Agent monitoring or just simple checks, SNMP agent and traps, web-page monitoring scenarios, database monitoring – and yet the list of features is not full. Clusterization and proxies for monitoring demilitarized zones and distributing the load also worth mentioning. Yes, it seems to be a very complicated construction, but when you’ll learn to put together all the pieces of the riddle, you’ll see the power and flexibility of Zabbix.

Don’t worry, we will master every detail of Zabbix, but to have something to start with – let’s learn to install it in its basic configuration – one host, zabbix server, Apache as a front-end and MySql as a database.

Don’t forget do make some initial configuration of your newly installed server! After that, proceed with the following instructions:

CentOS install zabbix server. Add a repository and installing packages

To install Zabbix from the repository, we need to add an official Zabbix repository to install and update the server. To do this, let’s create a file, and add a repository information in it:

Save and close the file with :wq

Now we need to install an additional tool to find out the version of Zabbix we are to install. It is called repoquery, and it is part of yum-util package – that is missing from clean CentOS 7.0 minimal install. First, install the package:

Then – query the repository:

Write down or copy the version number. We will need it later.

After that, add a EPEL repository for some dependencies:

Finally, the install itself.This command installs zabbix server and all packages we need:

CentOS install zabbix server. Database configuration

We have installed mariadb-server – a drop-in replacement for MySQL – now database needs initial configuration, and then – we need to create the database for Zabbix. Start our newly installed service and enable it to run at startup, then proceed with initial configuration:

Create and configure the database for server:

Remember, than in MySQL or MariaDB console every string must end with “;”. The final step – schema creation for the database we have created a step earlier. It is already downloaded with Zabbix. It’s located in /usr/share/doc/zabbix-server-mysql-<version>/create/. And that is why we need a version number from repoquery -qi zabbix command

CentOS install zabbix server. Web-server and firewall configuration

We have finished database configuration, now we need to tune-up the web-server and configure firewall for external communication.

php.ini tuning:

 Firewall configuration:

Remember, the default firewall in CentOS 7.x is firewalld. Although it is possible to revert to iptables, for now we will configure firewalld:

CentOS install zabbix server. Final step

Little change in zabbix.conf – and we are ready to install:

Start the services and enable them:

We are ready to proceed with the install. Open http://<your-server-ip-address>/zabbix in your browser. If you followed all the steps described earlier, you will see welcome page:

CentOS Install Zabbix server






Click next. Check all the prerequisites. All must be marked Ok.
CentOS Install Zabbix server





Test the database connection. User credentials we have created on the database configuration step

CentOS Install Zabbix server





You can click Next or specify the name of the installation.

CentOS Install Zabbix server





Check the parameters and click Next

CentOS Install Zabbix server





Click Finish. Now you will see login page. Use default login and password for new installations (login – admin password – zabbix), but don`t forget to change it after logging in.

CentOS Install Zabbix serverCentOS Install Zabbix server





Now we have fully configured Zabbix installation. In the next articles we continue the configuration ad will talk about different types of Zabbix clients

Official Zabbix site

  • Subscribe and receive weekly updates!
  • There are some things you can`t afford to miss... And the subscription is one of them! Get the latest news, articles and materials in a weekly newsletter!