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
Update the whole System
sudo yum update -y
Install MySQL
sudo dnf install mysql-server -y
Enable MySQL
sudo systemctl enable mysqld --now
Set Password for root MYSQL
sudo /usr/bin/mysql_secure_installation
Download the zabbix repository
sudo rpm -Uvh
https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-4.el8.noarch.rpm
Clean cache
sudo dnf clean all
Install Zabbix package
sudo dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent -y
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)
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix
Enter the root MySQL password
mysql -uroot -p -e "set global log_bin_trust_function_creators = 0;"
sudo systemctl restart zabbix-server zabbix-agent httpd php-fpm sudo
systemctl enable zabbix-server zabbix-agent httpd php-fpm
go to /etc/zabbix/ and open the zabbix_server.conf file and change DBPassword to DBPassword=zabbix123
Restart the Zabbix server
sudo systemctl restart zabbix-server zabbix-agent httpd php-fpm
Add the Zabbix port 10050 in the firewall
sudo firewall-cmd --add-port=10050/tcp --permanent
Reload the firewall
sudo firewall-cmd --reload