Zabbix- The Monitoring Tool

Zabbix- The Monitoring Tool

  • Zabbix is an open-source software tool to monitor IT infrastructure such as networks, servers, virtual machines, and cloud services. Zabbix collects and displays basic metrics​

  • We need to configure Zabbix in Linux and set up the dashboard.​

  • Zabbix can play an important role in monitoring IT infrastructure. This is equally true for small organizations with a few servers and for large companies with a multitude of servers.​

Pre-requisites of Zabbix Installation

Linux Machine: RHEL (Version 8.1 for base image)

Database – MySQL (Version 8.0)

Webserver – Apache (Version 2.4.37)

Steps for Zabbix-server Installation

  1. Update the whole System

    sudo yum update -y

  2. Install MySQL

    sudo dnf install mysql-server -y

  3. Enable MySQL

    sudo systemctl enable mysqld --now

  4. Set Password for root MYSQL

    sudo /usr/bin/mysql_secure_installation

  5. Download the zabbix repository

    sudo rpm -Uvhhttps://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-4.el8.noarch.rpm

  6. Clean cache

    sudo dnf clean all

  7. Install Zabbix package

    sudo dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent -y

  8. Provide the password you have set above after installation of MySQL

    mysql -uroot -p -e "create database zabbix character set utf8mb4 collate utf8mb4_bin;create user 'zabbix'@'localhost' identified by 'zabbix@123';grant all privileges on zabbix.* to 'zabbix'@'localhost';set global log_bin_trust_function_creators = 1;"

    Enter the default password of Zabbix MySQL user which is (zabbix@123)

  9. zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

    Enter the root MySQL password

  10. mysql -uroot -p -e "set global log_bin_trust_function_creators = 0;"

  11. sudo systemctl restart zabbix-server zabbix-agent httpd php-fpm sudo

  12. systemctl enable zabbix-server zabbix-agent httpd php-fpm

  13. go to /etc/zabbix/ and open the zabbix_server.conf file and change DBPassword to DBPassword=zabbix123

  14. Restart the Zabbix server

    sudo systemctl restart zabbix-server zabbix-agent httpd php-fpm

  15. Add the Zabbix port 10050 in the firewall

    sudo firewall-cmd --add-port=10050/tcp --permanent

  16. Reload the firewall

    sudo firewall-cmd --reload

    ENJOY ZABBIX at 127.0.0.1/zabbix