Ceph monitoring management platform calamari

environment

Existing:  CentOS 7.3 ( infrastructure server ) Ceph 10.2.7 (jewel)

Post-deployment: Calamari 1.3.3

introduce

Note: The introduction and rpm package are all from the blog of Mo Dashen http://www.zphj1987.com/  You deserve it!

The components included in Calamari mainly include calamari-server ; romana ; salt-minion ; salt-master ; diamond .

The respective roles of these modules:

  • Calamari-server  provides a place to interact with the cluster and encapsulate its own API for centralized management. This only needs to be installed on a certain machine in the cluster, or it can be installed independently

  • romana  is the original calamari-client , this is called client, it is actually a web interface, this is better called calamari-web , it has been renamed romana , this also only needs to be installed on a certain machine in the cluster, or you can Independent installation, this needs to be installed on a machine with calamari-server

  • salt-master  is a management tool that can manage other machines in batches, and can manage machines with salt-minion installed . In a cluster, this is also installed with calamari-server

  • The salt-minion  is installed on all nodes of the cluster. This is to receive instructions from the salt-master to operate on the machines in the cluster, and to feed back some information to the salt-master .

  • diamond  is a collection control for the monitoring information of the system, which provides the monitoring of the hardware information of the cluster and the monitoring of the information of the cluster. The data is sent to the romana machine, and the carbon on the romana collects the data and stores it in the machine. in the database

Install

Description (must see!!!)

Node situation

software installation required

Calamari server

calamri-server romana  salt-master

集群节点

salt-minion diamond

  1. 如果在某集群节点安装calamari,则以上都需要安装

  2. 以下涉及的admin均calamari salt-master服务端的hostname

  3. 本文不采用ceph-deploy calamari connect node 方式安装。

这一步通过自己观察发现是安装salt-miniondiamond软件并创建对应目录文件。

【因为采用的手工安装固定版本,因此可以舍弃。目录文件手动创建即可,下文

                            技术分享

==============================calamari端=================================

1、软件包解压

原链接:

http://www.zphj1987.com/2016/05/16/%E6%94%AF%E6%8C%81jewel%E7%89%88%E6%9C%AC%E7%9A%84calamari/

以下链接更改了saltstack的repo文件,磨大神的貌似失效了

链接: http://pan.baidu.com/s/1pLPWkHl   密码: a8jx 

# mkdir calamari && cd calamari

# unzip centosjewel.zip

# cd centosjewel/

2、添加saltstack repo文件

# mv saltstack-rhel7.repo /etc/yum.repos.d/

# yum clean all; yum repolist

3、安装calamari diamond romana

# yum localinstall 
calamari-server-1.3.3-jewel.el7.centos.x86_64.rpm diamond-3.4.68-jewel.noarch.rpmromana-1.2.2-36_gc62bb5b.el7.centos.x86_64.rpm

4、调整目录权限

# chmod 777 -R /var/log/calamari/

# chmod 777 -R /opt/calamari/

5salt的卸载与安装

卸载存在bugsalt版本并安装契合的salt版本(calamari依赖)

# rpm -e --nodeps salt-minion salt-master salt

# yum localinstall salt-2015.8.1-1.el7.noarch.rpm

# yum localinstall salt-master-2015.8.1-1.el7.noarch.rpm

# yum localinstallsalt-minion-2015.8.1-1.el7.noarch.rpm


需要先配置被监控端再继续calamari的相关操作!

 

===========================被监控端(集群节点)==============================

1、安装salt-minion diamond

1.1、添加saltstack repo文件

# mv saltstack-rhel7.repo /etc/yum.repos.d/

# yum clean all; yum repolist

1.2、安装

# yum localinstall 
salt-2015.8.1-1.el7.noarch.rpm salt-minion-2015.8.1-1.el7.noarch.rpm diamond-3.4.68-jewel.noarch.rpm

2、配置salt-minion

2.1、修改minion文件(admin均为calamarihostname

# sed -i ‘s/#master: salt/master: admin/‘ /etc/salt/minion

 

2.2、添加minion.d附加目录及calamari.conf文件

# mkdir /etc/salt/minion.d/

# echo ‘master: admin’> /etc/salt/minion.d/calamari.conf

# systemctl restart salt-minion

# systemctl enable salt-minion

 

注意(坑):

  • 如果通过ceph-deploycalamari connect nodex安装, calamari.conf里的master 默认为None ,会导致salt-key -L 发现不了节点

  • salt-minion 必须有一个mon节点,否则也会报:

技术分享

3、配置diamond

host指向calamari服务端hostname

# cd /etc/diamond/ && cpdiamond.conf.example diamond.conf

# sed -i ‘/^host/s/graphite/admin/‘ /etc/diamond/diamond.conf

# systemctl restart diamond

# systemctl enable diamond

 

注:某些机子上面出现了systemctl无法识别diamond服务,在确保已经安装后添加即可

chkconfig --add diamond


============================calamari端(续)===============================

6salt-master相关

!!!被监控端(集群节点)部署完成后再执行以下命令!!!

6.1重启

# systemctl restart salt-master

6.2 管理salt-minion节点

# salt-key -L               列出已发现的节点

# salt-key -A                允许所有节点加入

成功后由Unaccepted Keys 转为 Accepted keys

技术分享

6.3 检测节点

# salt ‘*‘ test.ping           检测链接性

技术分享

 

如果出现如下报错,检查client/etc/salt/minion.d/calamari.conf里的master项是否为calamari端的hostname

技术分享

 

# salt ‘*‘ ceph.get_heartbeats      输出ceph集群信息(过多不贴了)


7、初始化calamari配置

# calamari-ctl initialize

管理界面的用户名和密码

技术分享

8web访问及后续问题

以上步骤均成功后在浏览器地址栏输入calamari serverIP登录(默认80端口)即可

技术分享


如果出现以下错误(500

技术分享

清理配置再初始化一次

# calamari-ctl clear --yes-i-am-sure

# calamari-ctl initialize (无交互)

 

如果出现如下报错:

技术分享

重启     被监控端的salt-minion和 diamond

以及    server 端的salt-master


本文出自 “linux_wei” 博客,请务必保留此出处http://linuxww.blog.51cto.com/11418425/1944963

ceph监控管理平台calamari

标签:calamari   ceph监控平台   centos7安装calamari   支持jewel   

原文地址:http://linuxww.blog.51cto.com/11418425/1944963

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325572927&siteId=291194637