aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Reynolds <mreynolds@redhat.com>2021-02-03 14:58:51 -0500
committerJake Hunsaker <jhunsake@redhat.com>2021-02-17 14:53:42 -0500
commit196605b3d12d0ecdeb114276013d16ede3d15313 (patch)
tree17fbc5e1ca1d69af6b79c58c833d5d4e89a3df1c
parent7c7cf6687ea39d9502a229cc15628c7dca7a3569 (diff)
downloadsos-196605b3d12d0ecdeb114276013d16ede3d15313.tar.gz
[ds] Add healthcheck tool report for Red Hat Directory Server
For Directory Server (389-ds-base), add the output from the DS's healthcheck tool. See https://bugzilla.redhat.com/show_bug.cgi?id=1688759 Resolves: #2403 Signed-off-by: Mark Reynolds <mreynolds@redhat.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/ds.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/report/plugins/ds.py b/sos/report/plugins/ds.py
index bec42d8a..f4d68d6e 100644
--- a/sos/report/plugins/ds.py
+++ b/sos/report/plugins/ds.py
@@ -1,6 +1,7 @@
# Copyright (C) 2007 Red Hat, Inc., Kent Lamb <klamb@redhat.com>
# Copyright (C) 2014 Red Hat, Inc., Bryn M. Reeves <bmr@redhat.com>
-
+# Copyright (C) 2021 Red Hat, Inc., Mark Reynolds <mreynolds@redhat.com>
+#
# This file is part of the sos project: https://github.com/sosreport/sos
#
# This copyrighted material is made available to anyone wishing to use,
@@ -48,6 +49,7 @@ class DirectoryServer(Plugin, RedHatPlugin):
if d[0:5] == 'slapd':
certpath = os.path.join("/etc/dirsrv", d)
self.add_cmd_output("certutil -L -d %s" % certpath)
+ self.add_cmd_output("dsctl %s healthcheck" % d)
except OSError:
self._log_warn("could not list /etc/dirsrv")