一、主机规划与架构
服务器名称 | ip | 操作系统 | 角色 |
---|---|---|---|
zabbix-server | 192.168.100.212 | centos7 | 监控端 |
zabbix-agent | 192.168.100.50 | centos6 | 被监控端 |
二、安装(被监控端)
1、安装agent
centos6:
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/6/x86_64/zabbix-release-5.0-1.el6.noarch.rpm
centos7:
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
yum install zabbix-agent
2、修改配置文件(/etc/zabbix/zabbix_agentd.conf)
3、启动客户端
centos6:service zabbix-agent start
centos7:systemctl start zabbix-agent
三、添加监控项
1、添加主机
2、配置监控项(vfs.fs.size[/data2,pfree])
3、配置触发器({jiwu_video_100.50:vfs.fs.size[/data2,pfree].last()}<=“10%”)
参考链接:https://blog.csdn.net/happylin_/article/details/110646724
zabbix5.0安装链接:https://zhuanlan.zhihu.com/p/355984294