diff options
author | MIZUTA Takeshi <mizuta.takeshi@fujitsu.com> | 2020-01-07 16:52:22 +0900 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-01-28 13:12:58 -0500 |
commit | d334c5dedbcf7581b1b6ffde132cf6135a00d1ca (patch) | |
tree | 0ee0222f87741cf7a954aced9e29c9dafd186573 | |
parent | 9d1e5a0f7b757fa1c82aee7578ad4f7ab8080c5e (diff) | |
download | sos-d334c5dedbcf7581b1b6ffde132cf6135a00d1ca.tar.gz |
[sar] Fix the parameter specified in add_copy_spec() to wildcard
"/var/log/sa" is specified in add_copy_spec() in sar.py.
However, if a directory is specified in the parameter of add_copy_spec(),
--log-size does not work properly.
Therefore, fix "/var/log/sa" to wildcard so that --log-size works correctly.
Resolves: #1863
Signed-off-by: MIZUTA Takeshi <mizuta.takeshi@fujitsu.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/plugins/sar.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sos/plugins/sar.py b/sos/plugins/sar.py index 5a1b9f30..1780d0eb 100644 --- a/sos/plugins/sar.py +++ b/sos/plugins/sar.py @@ -18,7 +18,7 @@ class Sar(Plugin,): profiles = ('system', 'performance') packages = ('sysstat',) - sa_path = '/var/log/sa' + sa_path = '/var/log/sa/*' option_list = [("all_sar", "gather all system activity records", "", False)] @@ -55,11 +55,11 @@ class Sar(Plugin,): class RedHatSar(Sar, RedHatPlugin): - sa_path = '/var/log/sa' + sa_path = '/var/log/sa/*' class DebianSar(Sar, DebianPlugin, UbuntuPlugin): - sa_path = '/var/log/sysstat' + sa_path = '/var/log/sysstat/*' # vim: set et ts=4 sw=4 : |