aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-02-08 08:10:07 +0100
committerBryn M. Reeves <bmr@redhat.com>2019-03-04 16:27:59 +0000
commitfcdb051448bdc1e5abc4af3a4ec59e4ceae97d74 (patch)
tree1d7bbbe2115dc7abf41e2f779143c8995c7fa5bf
parent6d17362655951cbd0181e3b5e38fe67c9f30749d (diff)
downloadsos-fcdb051448bdc1e5abc4af3a4ec59e4ceae97d74.tar.gz
[watchdog] collect wdctl /dev/watchdog* outputs
Resolves: #1561 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/watchdog.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sos/plugins/watchdog.py b/sos/plugins/watchdog.py
index a3bdef05..43d457b2 100644
--- a/sos/plugins/watchdog.py
+++ b/sos/plugins/watchdog.py
@@ -85,4 +85,8 @@ class Watchdog(Plugin, RedHatPlugin):
self.add_copy_spec(log_files)
+ # Get output of "wdctl <device>" for each /dev/watchdog*
+ for dev in glob('/dev/watchdog*'):
+ self.add_cmd_output("wdctl %s" % dev)
+
# vim: set et ts=4 sw=4 :