Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / plugins / ceph / ceph_osd @ 8589c6df

Historique | Voir | Annoter | Télécharger (793 octets)

1 32b4df0c GABRI Mate
#!/bin/sh
2
3
: << =cut
4
5
=head1 NAME
6
7
ceph_osd - Shows ceph OSD states (total configured, up and in)
8
9
=head1 AUTHOR
10
11
Mate Gabri <mate@gabri.hu>
12
13
=head1 LICENSE
14
15
GPLv2
16
17
=head1 MAGICK MARKERS
18
19
 #%# family=auto
20
 #%# capabilities=autoconf
21
22
=cut
23
24
if [ "$1" = "autoconf" ]; then
25
	echo yes
26
	exit 0
27
fi
28
29
30
if [ "$1" = "config" ]; then
31
	
32
	echo 'graph_title CEPH OSDs'
33 65652aa0 dipohl
	echo 'graph_category fs'
34 32b4df0c GABRI Mate
	echo 'graph_vlabel nr'
35
	echo 'graph_info CEPH OSD up/down status'
36
	echo 'graph_scale no'
37
	echo 'graph_args --base 1000 -l 0'
38
39
	echo "osds.label OSDs"
40
	echo "up.label Up"
41
	echo "in.label In"
42
	echo "in.draw AREA"
43
44
	exit 0
45
fi
46
47
echo "osds.value $(ceph -s | grep osdmap | awk '{ print $3 }')"
48
echo "up.value $(ceph -s | grep osdmap | awk '{ print $5 }')"
49
echo "in.value $(ceph -s | grep osdmap | awk '{ print $7 }')"