zabbix
一、部署zabbix服务
操作系统——RockyLinux8.6
配置国内yum源并备份原yum源
http://t.zoukankan.com/wswind-p-15469768.html
关闭防火墙和selinux
安装常用软件
[root@localhost ~]# yum install lrzsz wget vim net-tools tree psmisc bash-completion dos2unix -y
时间同步
[root@localhost ~]# yum install chrony -y
[root@localhost ~]# vim /etc/chrony.conf
[root@localhost ~]# systemctl restart chronyd
[root@localhost ~]# systemctl enable chronyd
[root@localhost ~]# chronyc sources
关机做快照
RPM包安装
1. 配置安装yum源
[root@localhost ~]# dnf localinstall https://repo.huaweicloud.com/zabbix/zabbix/5.4/rhel/8/x86_64/zabbix-release-5.4-1.el8.noarch.rpm
[root@localhost yum.repos.d]# vim zabbix.repo
[root@localhost yum.repos.d]# cat zabbix.repo
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=https://repo.zabbix.com/zabbix/5.4/rhel/8/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=https://repo.zabbix.com/non-supported/rhel/8/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=1
>>>>>>>>>>>>>>修改url<<<<<<<<<<<<<<
[root@localhost yum.repos.d]# sed -i 's#https://repo.zabbix.com#https://repo.huaweicloud.com/zabbix#' /etc/yum.repos.d/zabbix.repo
[root@localhost yum.repos.d]# cat zabbix.repo
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=https://repo.huaweicloud.com/zabbix/zabbix/5.4/rhel/8/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=https://repo.huaweicloud.com/zabbix/non-supported/rhel/8/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=1
2. 安装zabbix server
过滤查看zabbix
[root@localhost ~]# dnf install -y zabbix-server-mysql
3. 安装zabbix agent
[root