说明:
Zabbix用于监控主机状态信息,分为服务端和被监听端。
一、Zabbix服务端安装/配置:
安装存储库MySQL5.7.37(一章,和Zabbix5.0服务端同一台机器):
https://blog.csdn.net/a526001650a/article/details/123188040?spm=1001.2014.3001.5501
1.安装Zabbix Repository:
[root@localhost ~]# rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
[root@localhost ~]# yum clean all
2.安装Zabbix server和agent:
[root@localhost ~]# yum -y install zabbix-server-mysql zabbix-agent
3.安装Zabbix前端(管理页):
(1)启用Red Hat软件集合:
[root@localhost ~]# yum -y install centos-release-scl
(2)启用zabbix-frontend存储库(vi /etc/yum.repos.d/zabbix.repo):
[zabbix-frontend]
...
enabled=1 #改为1启用
...
(3)安装Zabbix frontend(基于nginx):
[root@loc