mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-09-18 16:48:44 +00:00
added ceph_capacity and ceph_osd
This commit is contained in:
parent
e71641b88f
commit
32b4df0c2d
2 changed files with 111 additions and 0 deletions
49
plugins/ceph/ceph_osd
Executable file
49
plugins/ceph/ceph_osd
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/bin/sh
|
||||
|
||||
: << =cut
|
||||
|
||||
=head1 NAME
|
||||
|
||||
ceph_osd - Shows ceph OSD states (total configured, up and in)
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Mate Gabri <mate@gabri.hu>
|
||||
|
||||
=head1 LICENSE
|
||||
|
||||
GPLv2
|
||||
|
||||
=head1 MAGICK MARKERS
|
||||
|
||||
#%# family=auto
|
||||
#%# capabilities=autoconf
|
||||
|
||||
=cut
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
echo yes
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
|
||||
echo 'graph_title CEPH OSDs'
|
||||
echo 'graph_category ceph'
|
||||
echo 'graph_vlabel nr'
|
||||
echo 'graph_info CEPH OSD up/down status'
|
||||
echo 'graph_scale no'
|
||||
echo 'graph_args --base 1000 -l 0'
|
||||
|
||||
echo "osds.label OSDs"
|
||||
echo "up.label Up"
|
||||
echo "in.label In"
|
||||
echo "in.draw AREA"
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "osds.value $(ceph -s | grep osdmap | awk '{ print $3 }')"
|
||||
echo "up.value $(ceph -s | grep osdmap | awk '{ print $5 }')"
|
||||
echo "in.value $(ceph -s | grep osdmap | awk '{ print $7 }')"
|
Loading…
Add table
Add a link
Reference in a new issue