Skip to content
SRE运维进阶之路SRE运维进阶之路
github icon

    9 zookeeper集群监控

    author iconClaycalendar icon2021年5月11日category icon
    • 监控
    tag icon
    • Zabbix
    timer icon小于 1 分钟

    此页内容
    • System requirements
    • Features
    • Zabbix Macros
    • Zabbix Configuration

    # 9 zookeeper集群监控

    zabbix旧版本可以用,新版本建议用官方模板

    # Zabbix-Zookeper-Template

    # System requirements

    • zabbixopen in new window >= 3.4 (preprocessing used by this template)
    • zookeeperopen in new window >= 3.4 (mntr stats)
    • netcat
    • zookeeper监控模板,被监控主机,记得添加nc命令

    # Features

    • ruok check

    • mntr stats :

      • zk_num_alive_connections
      • zk_approximate_data_size
      • zk_ephemerals_count
      • zk_min_latency
      • zk_avg_latency
      • zk_max_latency
      • zk_max_file_descriptor_count
      • zk_open_file_descriptor_count
      • zk_outstanding_requests
      • zk_packets_received
      • zk_packets_sent
      • zk_server_state
      • zk_version
      • zk_znode_count
    • graphs

    • screen

    # Zabbix Macros

    • {$ZOO_IP} : IP of the Zookeeper Instance (default : 127.0.0.1)
    • {$ZOO_PORT} : Port of the Zookeeper Instance (default : 2181)

    # Zabbix Configuration

    1. Copy UserParameter_Zookeeper.conf to /etc/zabbix/zabbix_agentd.d folder (or whatever is default and/or configured on your system).

    2. Restart your Zabbix Agent

    3. Import XML template file (zookeeper.xml) into Zabbix via Web GUI (Configuration -> Templates -> Import).

    4. Assign the imported template to a host, change MACROS if needed in the host parameters and enjoy!

    edit icon编辑此页open in new window
    上次编辑于: 2022/4/27 15:33:00
    贡献者: clay-wangzhi
    备案号:冀ICP备2021007336号
    Copyright © 2023 Clay