http://www.tuicool.com/articles/3Q7R3y
http://www.tuicool.com/articles/fYjQ7j 监控磁盘
配置客户端
vim /usr/local/zabbix-2.2.2/etc/zabbix_agentd.conf
Include=/usr/local/etc/zabbix_agentd.conf.d/ #此行去掉注释
编写脚本
vim /usr/local/zabbix-2.2.2/scripts/jfedu.sh
#!/bin/bash
#jfedu shell
han=$1
case $han in
jfedu)
curl -s 192.168.80.63/index.html |grep jfedu |wc -l
;;
esac
加执行权限
mkdir /usr/local/etc/zabbix_agentd.conf.d/
vim /usr/local/etc/zabbix_agentd.conf.d/jfedu.conf
UserParameter=jf.edu[*],/usr/local/zabbix-2.2.2/scripts/jfedu.sh $1
测试
/usr/local/zabbix-2.2.2/sbin/zabbix_agentd -t jf.edu[jfedu]
jf.edu[jfedu] [t|1]
在zabbixserver 创建监控项
如下 ok
最后创建触发器和图形
转载于:https://blog.51cto.com/7456193/1783518