diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2019-02-08 08:10:07 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-04 16:27:59 +0000 |
commit | fcdb051448bdc1e5abc4af3a4ec59e4ceae97d74 (patch) | |
tree | 1d7bbbe2115dc7abf41e2f779143c8995c7fa5bf | |
parent | 6d17362655951cbd0181e3b5e38fe67c9f30749d (diff) | |
download | sos-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.py | 4 |
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 : |