diff options
-rw-r--r-- | sos/plugins/cs.py | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/sos/plugins/cs.py b/sos/plugins/cs.py index 963804b7..35847a92 100644 --- a/sos/plugins/cs.py +++ b/sos/plugins/cs.py @@ -31,7 +31,10 @@ class CertificateSystem(Plugin, RedHatPlugin): packages = ( "redhat-cs", "rhpki-common", - "pki-common" + "pki-common", + "redhat-pki", + "dogtag-pki", + "pki-base" ) files = ( @@ -47,12 +50,17 @@ class CertificateSystem(Plugin, RedHatPlugin): len(glob("/var/lib/rhpki-*")): return 73 # 8 should cover dogtag - elif self.is_installed("pki-common") or exists("/usr/share/java/pki"): + elif self.is_installed("pki-common"): return 8 + elif self.is_installed("redhat-pki") or \ + self.is_installed("dogtag-pki") or \ + self.is_installed("pki-base"): + return 9 return False def setup(self): csversion = self.checkversion() + if not csversion: self.add_alert("Red Hat Certificate System not found.") return @@ -96,5 +104,25 @@ class CertificateSystem(Plugin, RedHatPlugin): "/var/log/pki-*/transactions", "/var/log/pki-*/system" ]) + if csversion == 9: + # Get logs and configs for each subsystem if installed + for subsystem in ('ca', 'kra', 'ocsp', 'tks', 'tps'): + self.add_copy_spec([ + "/var/lib/pki/*/" + subsystem + "/conf/CS.cfg", + "/var/lib/pki/*/logs/" + subsystem + "/system", + "/var/lib/pki/*/logs/" + subsystem + "/transactions", + "/var/lib/pki/*/logs/" + subsystem + "/debug", + "/var/lib/pki/*/logs/" + subsystem + "/selftests.log" + ]) + + # Common log files + self.add_copy_spec([ + "/var/lib/pki/*/logs/catalina.*", + "/var/lib/pki/*/logs/localhost*.log", + "/var/lib/pki/*/logs/localhost*.txt", + "/var/lib/pki/*/logs/manager*.log", + "/var/lib/pki/*/logs/host-manager*.log", + "/var/lib/pki/*/logs/tps/tokendb-audit.log" + ]) # vim: set et ts=4 sw=4 : |