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

zabbix监控zookeeper

4.或者上传附件模板


转载于:https://blog.51cto.com/yujianglei/1773998

相关文章:

  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-11-23
  • 2021-09-14
  • 2021-09-26
猜你喜欢
  • 2022-12-23
  • 2019-10-09
  • 2022-12-23
  • 2021-08-31
  • 2021-11-05
相关资源
相似解决方案