#!/usr/bin/python
"""
: << =cut
=head1 NAME
Ceph Cluster status plugin for Munin by Benjamin Renard <brenard@zionetrix.net>
=head1 NOTES
Usage:
$0 config
show graphs that should be generated
$0
show the data for the graphs
This plugin have 3 modes :
- ceph_usage : graph data/allocated and total space cluster usage
- ceph_osd : graph ceph OSDs number (total/UP/IN)
- ceph_mon : graph ceph MONs number (total/UP)
To install this plugin :
ln -s /path/to/ceph_status /etc/munin/plugins/ceph_usage
ln -s /path/to/ceph_status /etc/munin/plugins/ceph_osd
ln -s /path/to/ceph_status /etc/munin/plugins/ceph_mon
If you are using cephx, you have to manually configure it :
- You have to create ceph user first :
ceph auth get-or-create client.munin mon 'allow r' > /etc/ceph/ceph.client.munin.keyring
chown munin: /etc/ceph/ceph.client.munin.keyring
chmod 400 /etc/ceph/ceph.client.munin.keyring
- After, you have to configure ceph_status execution :
[ceph_*]
user munin
env.ceph_id munin
env.ceph_keyring /etc/ceph/ceph.client.munin.keyring
=head1 AUTHOR
Benjamin Renard <brenard@zionetrix.net>