Installation and configuration of Zabbix monitoring. Centos7

In this post, we install and configure a server-zabbix 4.0 LTS and add him to one agent. Zabbix configuration is one of the basic things that a good admin should be able to.

Zabbix is ​​a solution (do not be afraid to say) enterprise-class monitoring service problems. Is used to collect, analysis and data visualization. The software is also able to detect any anomalies in our infrastructure and to notify the user accordingly.

Installing zabbix
Install repositories EPEL, webtatic i zabbix:

Install php version 7.2

Install httpd server:

Clean the iptables rules

Edit the php.ini file and change the configuration as follows:

Instaujemy MariaDB and configure the root password:

Zabbix create a database and user zabbix ( alternatively add access to a server mysql from outside; password change on their own , difficult password dictionary):

Install the server and its agent zabbix:

We import a database Zabbix:

We configure the server zabbix giving the details in our database created:
Edit your /etc/zabbix/zabbix_server.conf

I give the following data:

Start the server zabbix, We add to startup and check if it works:

We run the agent in a similar manner.

We do restart httpd command:

We go to the browser and enter the address:

If instead we have a window installer bug 500 , and in the error log the error "Can not start session" must be empowered to Session Directory:

We start the installer window.

go further, where they should be satisfied all requirements.
In the next step, we enter data into our database.
Data and configure the server name zabbix

we receive confirmation:

Congratulations! You have successfully installed Zabbix frontend.
Configuration file “/etc/zabbix/web/zabbix.conf.php” created.

We are directed to the panel zabbix - The default username is admin and the password is zabbix

After logging in, we can change the language to Polish that we were comfortable in it to operate - in this order on the right side at the top, select the icon, and then change the human language.

Ready - now we monitor our server!
For testing, we can install such a stress load and perform artificial:

To verify that the server monitors the load properly go to Monitorowanie-> Charts , and the Chart choose "CPU Utilization":

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.