1.监控脚本如下:check_zookeeper.sh
1 2 | #!/bin/bash echo mntr | nc 127.0.0.1 2182 | grep "$1" | awk '{print $2}' |
2.编辑zabbix_agentd.conf
1 2 | #Monitor zookeeper UserParameter=zookeeper[*], /usr/bin/sh /etc/zabbix/scripts/check_zookeeper .sh $1 |
3.编辑item
模板下载地址
http://yujianglei.blog.51cto.com/ext/down_att.php?aid=48574&code=9489