From eb216d15f1df579fd810aa077dee4230deffb878 Mon Sep 17 00:00:00 2001 From: Renaud Métrich Date: Wed, 2 May 2018 13:57:18 +0200 Subject: [systemd] collect additional useful information MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added "systemd-analyze dump" which is the complete systemd picture, containing dependencies, start/stop timestamps, aliases, etc. - Added "systemd-analyze plot" which provides a convenient visual way to understand dependencies and startup times. - Added collect of "/run/systemd/*" which contains many useful data, such as generated units, current sessions on system (useful to debug session leaks) and transient units. Resolves: #1285 Signed-off-by: Renaud Métrich Signed-off-by: Bryn M. Reeves --- sos/plugins/systemd.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sos/plugins/systemd.py b/sos/plugins/systemd.py index 6e8acff9..94266a92 100644 --- a/sos/plugins/systemd.py +++ b/sos/plugins/systemd.py @@ -39,11 +39,15 @@ class Systemd(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): "systemd-delta", "systemd-analyze", "systemd-analyze blame", + "systemd-analyze dump", "journalctl --list-boots", "ls -lR /lib/systemd", "timedatectl" ]) + self.add_cmd_output("systemd-analyze plot", + suggest_filename="systemd-analyze_plot.svg") + if self.get_option("verify"): self.add_cmd_output("journalctl --verify") @@ -52,7 +56,12 @@ class Systemd(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): "/lib/systemd/system", "/lib/systemd/user", "/etc/vconsole.conf", - "/etc/yum/protected.d/systemd.conf" + "/etc/yum/protected.d/systemd.conf", + "/run/systemd/generator*", + "/run/systemd/seats", + "/run/systemd/sessions", + "/run/systemd/system", + "/run/systemd/users" ]) # vim: set et ts=4 sw=4 : -- cgit