zabbix监控ceph集群

zabbix监控ceph集群
使用ceph zabbix模块提交监控信息
ceph集群中任意一台mon节点安装zabbix50-agent.x86_64,这里主要是使用这个包里面的zabbix_sender命令
[root@TlxAjdsEef ~]# yum search zabbix
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
======================================================================================================= N/S matched: zabbix =======================================================================================================
pcp-export-pcp2zabbix.x86_64 : Performance Co-Pilot tools for exporting PCP metrics to Zabbix
pcp-export-zabbix-agent.x86_64 : Module for exporting PCP metrics to Zabbix agent
python-pyzabbix.noarch : PyZabbix is a Python module for working with the Zabbix API
python2-zabbix-api-erigones.noarch : Zabbix API Python Library
python36-zabbix-api-erigones.noarch : Zabbix API Python Library
uwsgi-stats-pusher-zabbix.x86_64 : uWSGI - Zabbix Stats Pusher for uWSGI
zabbix40-agent.x86_64 : Zabbix agent
zabbix40-dbfiles-mysql.noarch : Zabbix database schemas, images, data and patches
zabbix40-dbfiles-pgsql.noarch : Zabbix database schemas, images, data and patches
zabbix40-dbfiles-sqlite3.noarch : Zabbix database schemas and patches
zabbix40-proxy.noarch : Zabbix proxy common files
zabbix40-proxy-mysql.x86_64 : Zabbix proxy compiled to use MySQL
zabbix40-proxy-pgsql.x86_64 : Zabbix proxy compiled to use PostgreSQL
zabbix40-proxy-sqlite3.x86_64 : Zabbix proxy compiled to use SQLite
zabbix40-selinux.noarch : Zabbix SELinux policy
zabbix40-server.noarch : Zabbix server common files
zabbix40-server-mysql.x86_64 : Zabbix server compiled to use MySQL
zabbix40-server-pgsql.x86_64 : Zabbix server compiled to use PostgreSQL
zabbix40-web.noarch : Zabbix Web Frontend
zabbix40-web-mysql.noarch : Zabbix web frontend for MySQL
zabbix40-web-pgsql.noarch : Zabbix web frontend for PostgreSQL
zabbix50-agent.x86_64 : Zabbix agent
zabbix50-dbfiles-mysql.noarch : Zabbix database schemas, images, data and patches
zabbix50-dbfiles-pgsql.noarch : Zabbix database schemas, images, data and patches
zabbix50-dbfiles-sqlite3.noarch : Zabbix database schemas and patches
zabbix50-proxy.noarch : Zabbix proxy common files
zabbix50-proxy-mysql.x86_64 : Zabbix proxy compiled to use MySQL
zabbix50-proxy-pgsql.x86_64 : Zabbix proxy compiled to use PostgreSQL
zabbix50-proxy-sqlite3.x86_64 : Zabbix proxy compiled to use SQLite
zabbix50-selinux.noarch : Zabbix SELinux policy
zabbix50-server.noarch : Zabbix server common files
zabbix50-server-mysql.x86_64 : Zabbix server compiled to use MySQL
zabbix50-server-pgsql.x86_64 : Zabbix server compiled to use PostgreSQL
zabbix40.x86_64 : Open-source monitoring solution for your IT infrastructure
zabbix50.x86_64 : Open-source monitoring solution for your IT infrastructure

  Name and summary matches only, use "search all" for everything.
安装zabbix50-agent.x86_64
yum install zabbix50-agent.x86_64 -y
测试是否安装成功,以下是成功安装状态
[root@TlxAjdsEef ~]# zabbix_sender -V
zabbix_sender (Zabbix) 5.0.21
Revision 47104dd574 28 February 2022, compilation time: Mar 12 2022 17:14:34

Copyright (C) 2022 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.

This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/).

Compiled with OpenSSL 1.0.2k-fips  26 Jan 2017
Running with OpenSSL 1.0.2k-fips  26 Jan 2017
ceph mon节点,配置ceph 使能zabbix模块
ceph mgr module enable zabbix
配置ceph zabbix模块参数
#192.168.2.24为zabbix server的服务端ip,默认端口为10051,如果server端,端口有修改使用192.168.2.24:3356 ip加端口的方式配置
ceph zabbix config-set zabbix_host 192.168.2.24
#配置标识,此处的标识必须与zabbix web ui 中配置->主机->创建主机 中的主机名称相同,可以使用ceph-[fsid]的方式配置
ceph zabbix config-set identifier ceph-c265658-d121212152a-6565-8541-622222222
#查看配置
ceph zabbix config-show
0
0
配置zabbix 导入ceph监控模板
从Zabbix模块的源码目录获取模板,模板位置位于
/usr/share/ceph/mgr/zabbix/zabbix_template.xml
0
配置 ->模板->导入
0
zabbix创建监控主机
配置-主机-创建主机
主机名称必须与ceph zabbix config-set identifier 配置时的标识相同
0
链接模板并添加
0
0
使用命令发送数据测试
ceph zabbix send
0
查看zabbix中的ceph监控
0
 
posted @ 2022-08-21 22:07  炒鸡蛋  阅读(269)  评论(0编辑  收藏  举报