1.监控脚本如下:check_zookeeper.sh
#!/bin/bash echo mntr | nc 127.0.0.1 2182 | grep "$1" |awk ‘{print $2}‘
2.编辑zabbix_agentd.conf
#Monitor zookeeper UserParameter=zookeeper[*],/usr/bin/sh /etc/zabbix/scripts/check_zookeeper.sh $1
3.编辑item
4.或者上传附件模板
本文出自 “不求最好,只求更好” 博客,请务必保留此出处http://yujianglei.blog.51cto.com/7215578/1773998
原文地址:http://yujianglei.blog.51cto.com/7215578/1773998