Operations 6 min read

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, setting up Zabbix 3.4.6 (including repository configuration, package installation, database creation, and web front‑end), adjusting PHP settings, and finally starting and enabling all services for a fully functional monitoring platform.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Step‑by‑Step Guide to Install Zabbix 3.4.6 on CentOS 7 with MariaDB

Preparation

Operating system: CentOS 7.4 Zabbix version: 3.4.6 (released 2018‑01‑15) Database: MariaDB

Disable firewall and SELinux:

systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config

Reboot the system after completing the preparation 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 and enable the service:

systemctl start mariadb && systemctl enable mariadb

2. Install Zabbix 3.4.6

Key features of Zabbix 3.4.6:

New dashboard

Improved map navigation tree

Proxy‑based remote command execution

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

Install server, web, and agent packages:

yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-sender

3. Create the Zabbix database

mysql -uroot
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
quit

4. Import initial schema and data

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

5. Configure Zabbix server to use the database

(Edit the Zabbix server configuration file to set DBHost, DBName, DBUser, DBPassword as needed.)

6. Start and enable Zabbix services

systemctl start zabbix-server zabbix-agent httpd && systemctl enable zabbix-server zabbix-agent httpd

7. Adjust PHP settings for the Zabbix front‑end

vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai

8. Reboot the system

reboot

9. Access the Zabbix web interface

Open a browser and navigate to http://<your_server_ip>/zabbix/.

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

zabbix-web-3.4.6-1.el7.noarch – Web interface

zabbix-get-3.4.6-1.el7.x86_64.rpm – Pull data from agents (server side)

zabbix-sender-3.4.6-1.el7.x86_64.rpm – Push data to server (agent side)

zabbix-web-mysql-3.4.6-1.el7.noarch.rpm – Web‑MySQL integration

zabbix-release-3.4.2-1.el7.noarch.rpm – Repository configuration

Verify installation with rpm -q <package_name>. The Zabbix monitoring system is now fully set up.

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.

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