Zabbix客户端介绍
配置Systemctl与修改yum源
配置主机名
hostnamectl set-hostname zabbix-server
bash
hostname
关闭防火墙和SELINUX安全模式
systemctl disable firewalld
setenforce 0
getenforce
vi /etc/selinux/config
reboot
配置网络信息
vi /etc/sysconfig/network-scripts/ifcfg-eth0
配置更新YUM源
备份系统YUM源
cd /etc/yum.repos.d/
mkdir bak
cp -r CentOS-* bak/
cd bak
配置阿里云YUM镜像源
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
更新YUM源
yum clean all
yum makecache
yum repolist
yum update
注意时间正确!!!保持一致!!!
yum install ntpdate –y
ntpdate –u ntp.aliyun.com
安装配置Agent
可以安装Agent2 该agent为agent即可(agent2功能更佳)
安装Zabbix镜像源
rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
修改yum源地址
sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo
配置zabbix-agent
vim /etc/zabbix/zabbix_agentd.conf
启动zabbix-agent
systemctl start zabbix-agent2
systemctl enable zabbix-agent2
systemctl status zabbix-agent2
zabbix-server-Web页面创建主机