栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > PHP

clickhouse之zabbix监控(三台物理机六个节点)

PHP 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

clickhouse之zabbix监控(三台物理机六个节点)

一、节点信息概述

   server1:    shard1(9001端口)     shard3副本(9002端口)

   server2:    shard2(9001端口)     shard1副本(9002端口)

   server4:    shard3(9001端口)     shard2副本(9002端口)

 

二、前期准备

1)xmllint安装

     下载地址:https://centos.pkgs.org/7/centos-x86_64/libxml2-2.9.1-6.el7_2.3.x86_64.rpm.html

rpm -ivh libxml2-2.9.1-6.el7_2.3.x86_64.rpm

2)确保clickhouse-client已经安装

 

三、配置

1)修改zabbix-agent配置

# 新增文件
/etc/zabbix/zabbix_agentd.d/userparameter_clickhouse.conf
________________________________________________________

UserParameter=ch_params[*],sh /etc/clickhouse-server/zbx_clickhouse_monitor.sh "$1" "localhost" 9001 "gzdata"  /etc/clickhouse-server/config9001.xml
UserParameter=ch_params-replication[*],sh /etc/clickhouse-server/zbx_clickhouse_monitor.sh "$1" "localhost" 9002 "gzdata" /etc/clickhouse-server/config9002.xml
________________________________________________________

 

2)下载脚本和模板(zbx_clickhouse_monitor.sh)

        下载地址:https://github.com/Altinity/clickhouse-zabbix-template

         1)把 zbx_clickhouse_monitor.sh 放到 /etc/clickhouse-server 目录下

         2)导入 zbx_clickhouse_template.xml 模板

 

 

四、重启zabbix-agent服务

 systemctl  restart zabbix-agent

 

 

附件:

    配置下载,修改后的,支持clickhouse账号密码,配置文件可变的脚本

   (zbx_clickhouse_monitor.sh、zbx_clickhouse_template.xml、zbx_clickhouse_template-replication.xml)

    https://download.csdn.net/download/qq_23160237/11812433

 

 

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/268721.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号