Step-by-Step Guide to Install and Configure Zabbix 4.4 on CentOS 8
This tutorial walks you through preparing a CentOS 8 system, installing Zabbix 4.4 and its dependencies, configuring the database and server, and completing the web‑based setup, providing all necessary commands and screenshots for a successful monitoring solution.
Zabbix Overview
Zabbix is an open‑source, web‑based enterprise solution for distributed system and network monitoring. It monitors various network parameters, ensures server security, and provides flexible notifications to help administrators quickly locate and resolve issues, reducing operational workload.
It consists of an Agent side that collects data from hosts and a Server side that stores data in a database (MySQL, Oracle, etc.) and displays it via a PHP‑Apache web front‑end.
Practical Environment
CentOS 8 (x64)
Zabbix 4.4
Installation Steps
1. Prepare the Operating System
Rename the host name, disable SELinux, stop and disable the firewall, and configure a static IP address.
[root@localhost ~]# vim /etc/hostname[root@localhost ~]# vim /etc/selinux/configSELINUX=disabled[root@localhost ~]# systemctl stop firewalld.service[root@localhost ~]# systemctl disable firewalld.service[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens192BOOTPROTO="static"IPADDR=10.10.10.50NETMASK=255.255.255.0GATEWAY=10.10.10.1DNS1=10.10.10.5# systemctl restart network2. Install Zabbix
Update the system and install required packages.
[root@zabbix ~]# yum update -y[root@zabbix ~]# dnf install -y httpd mysql-server \php php-mysqlnd php-mbstring php-pdo php-gd[root@zabbix ~]# systemctl enable --now httpd.service[root@zabbix ~]# systemctl enable --now mysqld.service# vim /etc/php.inidate.timezone = Asia/ShanghaiSecure MySQL installation and set the root password. [root@zabbix ~]# mysql_secure_installation Create the Zabbix database and user.
mysql -u root -pcreate database zabbix character set UTF8 collate utf8_bin;create user 'zabbix'@'localhost' identified by 'Shanghai2010@';grant ALL on zabbix.* to 'zabbix'@'localhost';flush privileges;Install the Zabbix repository and server components.
wget https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpmdnf install -y zabbix-release-4.4-1.el8.noarch.rpmdnf makecachednf install -y zabbix-server-mysql zabbix-web-mysql zabbix-apache-confzcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -D zabbix -pShanghai2010@Edit the server configuration.
vim /etc/zabbix/zabbix_server.confDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=Shanghai2010@Install and start the Zabbix agent.
dnf install -y zabbix-agentsystemctl enable --now zabbix-serversystemctl enable --now zabbix-agent3. Complete Configuration
Access the web interface at http://<em>server_ip</em>, follow the wizard, provide the database password, and finish the setup. The default login is user Admin with password zabbix .
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
