安装zabbix前的准备

先了解zabbix架构
在CentOS 7.5 搭建最新版zabbix 4.4 监控系统-date201911-13_第1张图片

先安装mariaDB , http 即搭建LAMP架构和其它的依赖包 执行以下安装命令

在CentOS 7.5 搭建最新版zabbix 4.4 监控系统-date201911-13_第2张图片

成功后

下面开始安装zabbix

在CentOS 7.5 搭建最新版zabbix 4.4 监控系统-date201911-13_第3张图片

这是官网安装教程,可以作为参考
https://www.zabbix.com/download?zabbix=4.0&os_distribution=centos&os_version=8&db=mysql

在CentOS 7.5 搭建最新版zabbix 4.4 监控系统-date201911-13_第4张图片

Choose your platform

Install and configure Zabbix server for your platform
a. Install Zabbix repository
documentation
#rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/8/x86_64/zabbix-release-4.0-2.el8.noarch.rpm
#dnf clean all
b. Install Zabbix server, frontend, agent
#dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
c. Create initial database
documentation
#mysql -uroot -p
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
mysql> quit;
Import initial schema and data. You will be prompted to enter your newly created password.

#zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
d. Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf

DBPassword=password
e. Configure PHP for Zabbix frontend
Edit file /etc/php-fpm.d/zabbix.conf, uncomment and set the right timezone for you.
; php_value[date.timezone] = Europe/Riga
f. Start Zabbix server and agent processes
Start Zabbix server and agent processes and make it start at system boot:

#systemctl restart zabbix-server zabbix-agent httpd php-fpm
#systemctl enable zabbix-server zabbix-agent httpd php-fpm
Now your Zabbix server is up and running!

Configure Zabbix frontend
Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix
Follow steps described in Zabbix documentation: Installing frontend

Start using Zabbix
Read in documentation: Quickstart guide

默认用户名Admin

默认密码zabbix

Watch video guide:
Zabbix Server Installation
Zabbix server installation explained