Operations 8 min read

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.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Step-by-Step Guide to Install and Configure Zabbix 4.4 on CentOS 8

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/config
SELINUX=disabled
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# systemctl disable firewalld.service
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens192
BOOTPROTO="static"
IPADDR=10.10.10.50
NETMASK=255.255.255.0
GATEWAY=10.10.10.1
DNS1=10.10.10.5
# systemctl restart network

2. 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.ini
date.timezone = Asia/Shanghai

Secure MySQL installation and set the root password. [root@zabbix ~]# mysql_secure_installation Create the Zabbix database and user.

mysql -u root -p
create 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.rpm
dnf install -y zabbix-release-4.4-1.el8.noarch.rpm
dnf makecache
dnf install -y zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -D zabbix -pShanghai2010@

Edit the server configuration.

vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=Shanghai2010@

Install and start the Zabbix agent.

dnf install -y zabbix-agent
systemctl enable --now zabbix-server
systemctl enable --now zabbix-agent

3. 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 .

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

monitoringInstallationZabbixCentOS8
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.