Step-by-Step Guide to Install Zabbix 3.4.6 on CentOS 7
This tutorial walks you through preparing a CentOS 7 system, installing MariaDB, setting up Zabbix 3.4.6 with all required packages, configuring the database and web front‑end, and finally launching the monitoring service, complete with code snippets and screenshots.
Preparation
Operating System: CentOS 7.4 Zabbix version: 3.4.6 (released 2018‑01‑15) Database: MariaDB
Disable the firewall and prevent it from starting on boot:
systemctl stop firewalld
systemctl disable firewalldTurn off SELinux temporarily and permanently:
# Temporary
default: setenforce 0
# Permanent
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/configReboot the system after completing the above steps.
1. Install MariaDB
MariaDB is a community‑maintained fork of MySQL, fully compatible with MySQL APIs and command‑line tools. yum -y install mariadb-server mariadb Start the service and enable it at boot:
systemctl start mariadb && systemctl enable mariadb2. Install Zabbix 3.4.6
Key features of version 3.4.6 include a new dashboard, improved map navigation, proxy‑based remote command execution, and parallel alarm processing.
Configure 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 agents:
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;
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 (see screenshot 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 httpdAdjust the Zabbix front‑end PHP configuration (timezone):
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/ShanghaiReboot the system: reboot Access the Zabbix web interface via:
http://<your_server_ip>/zabbix/At this point, the Zabbix monitoring system is fully set up.
Appendix – Zabbix Package Overview
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 – Web interface
zabbix-get-3.4.6-1.el7.x86_64.rpm – Retrieves data from agents (installed on server)
zabbix-sender-3.4.6-1.el7.x86_64.rpm – Sends data to server (installed on agents)
zabbix-web-mysql-3.4.6-1.el7.noarch.rpm – Web‑MySQL integration
zabbix-release-3.4.2-1.el7.noarch.rpm – Provides the YUM repository
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.
