Step-by-Step Guide to Install Zabbix 3.4.6 on CentOS 7
This tutorial walks you through preparing a CentOS 7.4 system, installing MariaDB, setting up Zabbix 3.4.6 with MySQL support, configuring the database and web frontend, and finally starting all services to achieve a fully functional monitoring platform.
1. Preparation
OS: CentOS 7.4 Zabbix version: 3.4.6 (released 2018‑01‑15) Database: MariaDB
Disable the firewall and SELinux:
systemctl stop firewalld
systemctl disable firewalld
setenforce 0 # temporary
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config # permanentReboot the system after completing the preparation.
2. Install MariaDB
Overview: MariaDB is a community‑maintained fork of MySQL, fully compatible with MySQL APIs and command‑line tools. yum -y install mariadb-server mariadb Start MariaDB and enable it at boot:
systemctl start mariadb && systemctl enable mariadb3. Install Zabbix 3.4.6
3.4.6 new features
1) New dashboard
2) New map navigation tree
3) Proxy support for remote commands
4) Parallel alarm processingAdd 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 frontend, agent and utilities:
yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-senderCreate the Zabbix database and grant privileges:
mysql -uroot
create database zabbix character set utf8 collate utf8_bin;
grant 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 Zabbix server to use the database (illustrated below):
Start Zabbix server, agent and Apache, and enable them at boot:
systemctl start zabbix-server zabbix-agent httpd && systemctl enable zabbix-server zabbix-agent httpdConfigure PHP for the Zabbix frontend (set timezone):
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/ShanghaiReboot the system: reboot Access the Zabbix web interface:
http://<your_server_ip>/zabbix/Appendix: Zabbix Package Overview
zabbix-server-mysql-3.4.6-1.el7.x86_64 – main server binary
zabbix-agent-3.4.6-1.el7.x86_64 – agent binary
zabbix-web-3.4.6-1.el7.noarch – web frontend
zabbix-get-3.4.6-1.el7.x86_64.rpm – pulls data from agents
zabbix-sender-3.4.6-1.el7.x86_64.rpm – pushes data to server
zabbix-web-mysql-3.4.6-1.el7.noarch.rpm – web‑MySQL integration
zabbix-release-3.4.2-1.el7.noarch.rpm – creates YUM repo
Use rpm -q <package_name> to verify installation. The zabbix-get tool runs on the server to pull data from agents, while zabbix-sender runs on agents to push data to the server.
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.
