From 32c3d2ba372ed2d80051a8392f6f15462fe5e267 Mon Sep 17 00:00:00 2001 From: Eduardo Damato Date: Tue, 13 Nov 2012 17:11:54 +0000 Subject: adding ceph plugin --- sos/plugins/ceph.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 sos/plugins/ceph.py 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") + -- cgit