Install Zabbix Server 5.0 on CentOS 7

Tram Ho

Zabbix is ​​an open source distributed network service monitoring tool that has many unique features and is highly customizable. Zabbix is ​​capable of serving the medium and large networks of existing businesses with a moderate investment cost. Zabbix is ​​designed to monitor and monitor the operating status of network infrastructure (network), servers (servers), applications (applications) in real time. Developed in a client-server model, zabbix can collect different types of data to create statistical graphs about the performance or load trends of monitored objects.

In today’s article, I will guide you to install Zabbix Server version 5.0 on Centos 7 operating system.

Step 1: Configure SELinux to permissive mode

Step 2: Install Zabbix server

  • Install Zabbix repository

  • Install Zabbix Server & Zabbix Agent

  • Install Zabbix frontend

Edit the zabbix.repo file to enable installation of zabbix-frontend from the responsitory

Set enable = 1 in [zabbix-frontend] Then proceed to install Zabbix frontend from repository

Step 3: Install MariaDB

  • Add the MariaDB installation repository MariaDB, you can install from the repo or from the tar package, here I will install from the repo To add the repository to install MariaDB we proceed to create the mariadb.repo file as follows:

Copy and paste the following text and save the file:

  • Install MariaDB Server and MariaDB Client

  • Start MariaDB Service

  • Reset password for database Secure mysql by changing default password for Mysql root:

Note: from MariaDB version 10.04 onwards you can login without entering password

  • Create User and Database for Zabbix

  • Import Zabbix database Temporarily configure innodb_strict_mode = OFF to avoid Mysql error “ERROR 1118 (42000) at line 1284: Row size too large (> 8126)”

When you run the import data and schema command you will be asked for a password, enter the password you created in the previous step

Reconfigure innodb_strict_mode = ON

Step 4: Configure Zabbix Server Edit the file zabbix_server.conf

Parameters to pay attention to:

  • DBHost=localhost (Database Host)
  • DBName=zabbix (Database Name)
  • DBUser=zabbix (Database Username)
  • DBPassword=password (Database Password)

Step 5: Configure PHP Open the file zabbix.conf uncomment ; php_value[date.timezone] = Europe/Riga and change to Asia/Ho_Chi_Minh

Step 6: Start Zabbix Server and Agent

Step 7: Restart the Apache web server

Step 8: Set up firewall

Step 9: Set up Zabbix Dashboard After completing the above steps, we proceed to open the browser and enter the address http://ip_server/zabbix

image.png

Select Next

image.png

Select Next

image.png Enter database information and select Next

 

image.png

Name Zabbix Server and select Next

image.png

Select Next

image.png

Select Finish

After the setup is complete, log in to Zabbix Dashboard with the default Admin/zabbix account image.png

Dashboard interface on Zabbix server image.png

Remember to change the password of the administrator account (Admin) to ensure security, go to Administrator -> Users -> Admin to “change password”

So the process of performing the steps to install Zabbix on Centos has been completed.

Share the news now

Source : Viblo