aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenaud Métrich <rmetrich@redhat.com>2018-05-02 13:57:18 +0200
committerBryn M. Reeves <bmr@redhat.com>2018-06-06 15:59:01 +0100
commiteb216d15f1df579fd810aa077dee4230deffb878 (patch)
treec09f0c8bf503b1ca8c8aec087d26bb1b63247f9f
parentc080d421cc1fa89dc6e438a54835fe4203fc7838 (diff)
downloadsos-eb216d15f1df579fd810aa077dee4230deffb878.tar.gz
[systemd] collect additional useful information
- 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 <rmetrich@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/systemd.py11
1 files changed, 10 insertions, 1 deletions
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 :