aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMIZUTA Takeshi <mizuta.takeshi@fujitsu.com>2020-01-07 16:52:22 +0900
committerJake Hunsaker <jhunsake@redhat.com>2020-01-28 13:12:58 -0500
commitd334c5dedbcf7581b1b6ffde132cf6135a00d1ca (patch)
tree0ee0222f87741cf7a954aced9e29c9dafd186573
parent9d1e5a0f7b757fa1c82aee7578ad4f7ab8080c5e (diff)
downloadsos-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.py6
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 :