zabbix 监控zookeeper

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

wKiom1c5k-mx1LQPAA4HTM1NfGI670.jpg

模板下载地址

http://yujianglei.blog.51cto.com/ext/down_att.php?aid=48574&code=9489

posted @ 2017-03-03 09:43  苦逼码农2014  阅读(1707)  评论(1编辑  收藏  举报