Step-by-Step Guide to Install Zabbix 3.4.6 on CentOS 7 with MariaDB
This tutorial walks you through preparing a CentOS 7.4 system, installing MariaDB, configuring Zabbix 3.4.6 (including repository setup, database creation, service startup, PHP timezone adjustment, and web UI deployment), and verifies the monitoring platform is fully operational.
1. Preparation
OS: CentOS 7.4 Zabbix version: 3.4.6 (released 2018‑01‑15) Database: MariaDB
Disable firewall: systemctl stop firewalld Prevent firewall from starting on boot: systemctl disable firewalld Disable SELinux temporarily: setenforce 0 Disable SELinux permanently:
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/configAfter completing the preparation, reboot the system.
2. Install MariaDB
Overview: MariaDB is a community‑maintained fork of MySQL, fully compatible with MySQL APIs and command‑line tools, created to avoid potential closed‑source risks after Oracle's acquisition of MySQL.
Install MariaDB server via yum: yum -y install mariadb-server mariadb Start MariaDB and enable it to start on boot:
systemctl start mariadb && systemctl enable mariadb3. Install Zabbix 3.4.6
Version highlights:
1) New dashboard
2) New map navigation tree
3) Proxy command execution support
4) Parallel alarm processingConfigure the Zabbix yum repository:
rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpmInstall Zabbix server, web interface, and agent packages:
yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-senderCreate the initial Zabbix database:
mysql -uroot
create database zabbix character set utf8 collate utf8_bin;
granted all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
quitImport the initial schema and data:
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbixConfigure the Zabbix server to use the database (edit /etc/httpd/conf.d/zabbix.conf and set the timezone):
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/ShanghaiStart Zabbix server, agent, and Apache, and enable them at boot:
systemctl start zabbix-server zabbix-agent httpd && systemctl enable zabbix-server zabbix-agent httpdReboot the system: reboot Access the Zabbix web interface (replace with your server IP): http://<your_server_ip>/zabbix/ Screenshot of the final Zabbix UI:
Conclusion
At this point, the Zabbix monitoring system is fully set up.
Appendix – Zabbix package names and purposes:
zabbix-server-mysql-3.4.6-1.el7.x86_64 – Zabbix server core
zabbix-agent-3.4.6-1.el7.x86_64 – Zabbix agent core
zabbix-web-3.4.6-1.el7.noarch – Zabbix web interface
zabbix-get-3.4.6-1.el7.x86_64.rpm – Retrieves data from agents (server side)
zabbix-web-mysql-3.4.6-1.el7.noarch.rpm – Web UI MySQL driver
zabbix-release-3.4.2-1.el7.noarch.rpm – Creates yum repository configuration
zabbix-sender-3.4.6-1.el7.x86_64.rpm – Sends data from agents to server
Use rpm -q <package_name> to verify each package is installed.
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.
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.
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.
