Operations 7 min read

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.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
Step-by-Step Guide to Install Zabbix 3.4.6 on CentOS 7

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  # permanent

Reboot 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 mariadb

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

Add 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 Zabbix server, web frontend, agent and utilities:

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

Create 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';
quit

Import the initial schema and data:

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

Configure Zabbix server to use the database (illustrated below):

Zabbix DB configuration
Zabbix DB configuration

Start Zabbix server, agent and Apache, and enable them at boot:

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

Configure PHP for the Zabbix frontend (set timezone):

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

Reboot the system: reboot Access the Zabbix web interface:

http://<your_server_ip>/zabbix/
Zabbix login page
Zabbix login page
Zabbix dashboard
Zabbix dashboard
Zabbix hosts view
Zabbix hosts view
Zabbix items
Zabbix items
Zabbix triggers
Zabbix triggers
Zabbix graphs
Zabbix graphs
Zabbix maps
Zabbix maps
Zabbix configuration
Zabbix configuration
Zabbix final view
Zabbix final view

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.

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.