Ceph Jewel(10.2.x)安装配置Dashboard
环境说明
Ubuntu 16.04 LTS
Ceph Jewel(10.2.x)
获取软件
# git clone https://github.com/Crapworks/ceph-dash.git
修改模板(可选):
ceph-dash/app/templates/status.html
使用supervisor管理ceph-dash进程
# apt-get install supervisor
# vim /etc/supervisor/supervisord.conf
[inet_http_server]
port=0.0.0.0:9001
username=admin
password=password
# vim /etc/supervisor/conf.d/ceph-dash.conf
[program:ceph-dash]
command=python ceph-dash.py
directory=/root/ceph-dash
user=root
autorestart=true
redirect_stderr=true
stdout_logfile=/var/log/ceph-dash.log
loglevel=info
# touch /var/log/ceph-dash.log
# /etc/init.d/supervisor start
# /etc/init.d/supervisor status
# supervisorctl status
# tail /var/log/ceph-dash.log
访问监控页面
http://<your_server_ip>:5000/
改变访问端口方法
The development server of Ceph-dash runs by default on port 5000. If you can't use this port since it is already used by another application, you can change it by opening ceph-dash.py and change the line
app.run(host='0.0.0.0', debug=True)
to:
app.run(host='0.0.0.0', port=6666, debug=True)
Please keep in mind that the development server should not be used in a production environment. Ceph-dash should be deployed into a proper webserver like Apache or Nginx.