aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-11-27 13:06:45 -0800
committerBryn M. Reeves <bmr@redhat.com>2012-11-27 13:06:45 -0800
commitf6eda48ddd2d099424ca9d8c6f2b629865e57e6d (patch)
tree76fad90529355c68b1e2ec55c38af2518a506442
parent76d22bab2fa74da4704111ad7054b72e7b342733 (diff)
parent32c3d2ba372ed2d80051a8392f6f15462fe5e267 (diff)
downloadsos-f6eda48ddd2d099424ca9d8c6f2b629865e57e6d.tar.gz
Merge pull request #67 from edamato/master
Add ceph module to sos
-rw-r--r--sos/plugins/ceph.py39
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")
+