1) #!/usr/bin/python
2)
3) """
4) : << =cut
5)
6) =head1 NAME
7)
8) Ceph Cluster status plugin for Munin by Benjamin Renard <brenard@zionetrix.net>
9)
10) =head1 NOTES
11)
12) Usage:
13)
14) $0 config
15) show graphs that should be generated
16)
17) $0
18) show the data for the graphs
19)
20) This plugin have 3 modes :
21)
22) - ceph_usage : graph data/allocated and total space cluster usage
23) - ceph_osd : graph ceph OSDs number (total/UP/IN)
24) - ceph_mon : graph ceph MONs number (total/UP)
25)
26) To install this plugin :
27)
28) ln -s /path/to/ceph_status /etc/munin/plugins/ceph_usage
29) ln -s /path/to/ceph_status /etc/munin/plugins/ceph_osd
30) ln -s /path/to/ceph_status /etc/munin/plugins/ceph_mon
31)
32) If you are using cephx, you have to manually configure it :
33)
34) - You have to create ceph user first :
35)