diff options
author | Eduardo Damato <eduardo.damato@canonical.com> | 2012-11-13 17:11:54 +0000 |
---|---|---|
committer | Eduardo Damato <eduardo.damato@canonical.com> | 2012-11-13 17:11:54 +0000 |
commit | 32c3d2ba372ed2d80051a8392f6f15462fe5e267 (patch) | |
tree | 76fad90529355c68b1e2ec55c38af2518a506442 | |
parent | 76d22bab2fa74da4704111ad7054b72e7b342733 (diff) | |
download | sos-32c3d2ba372ed2d80051a8392f6f15462fe5e267.tar.gz |
adding ceph plugin
-rw-r--r-- | sos/plugins/ceph.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sos/plugins/ceph.py b/sos/plugins/ceph.py new file mode 100644 index 00000000..8a805dc5 --- /dev/null +++ b/sos/plugins/ceph.py @@ -0,0 +1,39 @@ +### This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. + +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. + +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin + +class ceph(Plugin, RedHatPlugin, UbuntuPlugin): + """information on CEPH + """ + optionList = [("log", "gathers all ceph logs", "slow", False)] + + packages = ('ceph', + 'ceph-mds', + 'ceph-common', + 'libcephfs1', + 'ceph-fs-common') + + def setup(self): + self.addCopySpecs(["/etc/ceph/", + "/var/log/ceph/"]) + + self.collectExtOutput("/usr/bin/ceph status") + self.collectExtOutput("/usr/bin/ceph health") + self.collectExtOutput("/usr/bin/ceph osd tree") + self.collectExtOutput("/usr/bin/ceph osd stat") + self.collectExtOutput("/usr/bin/ceph osd dump") + self.collectExtOutput("/usr/bin/ceph mon stat") + self.collectExtOutput("/usr/bin/ceph mon dump") + |