1-创建zabbix客户端监控
//关闭防火墙
systemctl disable --now firewalld.service
//关闭selinux
setenforce 0
//创建用户
useradd -rMs /sbin/nologin zabbix
//下载zabbix依赖包
dnf -y install make gcc gcc-c++ pcre-devel openssl openssl-devel
//下载zabbix软件包
wget https://cdn.zabbix.com/zabbix/sources/stable/6.2/zabbix-6.2.2.tar.gz
//解压zabbix
tar -xf zabbix-6.2.2.tar.gz
//进入zabbix目录
cd zabbix-6.2.2/
//安装zabbix
./configure --enable-agent
//编译安装
make install
//修改配置文件
[root@localhost ~]# vim /usr/lcoal/etc/zabbix_agentd.conf
Server=192.168.79.130 //服务端主机IP
ServerActive=192.168.79.130 //服务端主机IP
Hostname=Kin server //zabbix系统内主机名
1-1在服务端添加主机
1-2创建主机组加入主机
1-3添加监控
[root@localhost ~]# touch /tmp/Gin
1-4 添加触发器
1-5添加媒介
1-6添加动作
1-7手动触发报警
[root@localhost ~]# echo '1234456' > /tmp/Gin
2-Windows部署zabbix服务
https://cdn.zabbix.com/zabbix/binaries/stable/6.2/6.2.1/zabbix_agent-6.2.1-windows-amd64-openssl.msi
下载安装包
其他的下一步
2-1关闭防火墙
2-3添加windows主机