aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/ceph.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/sos/plugins/ceph.py b/sos/plugins/ceph.py
index 8c40a3bd..4008f733 100644
--- a/sos/plugins/ceph.py
+++ b/sos/plugins/ceph.py
@@ -7,6 +7,7 @@
# See the LICENSE file in the source distribution for further information.
from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin
+from socket import gethostname
class Ceph(Plugin, RedHatPlugin, UbuntuPlugin):
@@ -15,6 +16,7 @@ class Ceph(Plugin, RedHatPlugin, UbuntuPlugin):
plugin_name = 'ceph'
profiles = ('storage', 'virt')
+ ceph_hostname = gethostname()
packages = (
'ceph',
@@ -26,6 +28,13 @@ class Ceph(Plugin, RedHatPlugin, UbuntuPlugin):
'librados2'
)
+ services = (
+ 'ceph-nfs@pacemaker',
+ 'ceph-mds@%s' % ceph_hostname,
+ 'ceph-mon@%s' % ceph_hostname,
+ 'ceph-mgr@%s' % ceph_hostname
+ )
+
def setup(self):
all_logs = self.get_option("all_logs")
@@ -86,6 +95,9 @@ class Ceph(Plugin, RedHatPlugin, UbuntuPlugin):
"ceph %s --format json-pretty" % s for s in ceph_cmds
], subdir="json_output")
+ for service in self.services:
+ self.add_journal(units=service)
+
self.add_forbidden_path([
"/etc/ceph/*keyring*",
"/var/lib/ceph/*keyring*",