aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-10-29 14:43:02 +0000
committerBryn M. Reeves <bmr@redhat.com>2013-10-29 14:43:39 +0000
commitcd942f5deb2d56eecf98016bcdd5a7a626ab2bdb (patch)
treef290b8a9b24a2fe6b1d8950bc4ba0f888a6cc9e2
parenta3508a272ea9f76fcd37fc26daae91242dfd75db (diff)
downloadsos-cd942f5deb2d56eecf98016bcdd5a7a626ab2bdb.tar.gz
Move sar data colletion to sar plug-in
Historically the general plug-in collected the content of the /var/log/sa directory while a separate sar plug-in handles the text formatted summary files. This makes little sense and adds to the bloat in the "general" module; move the collection to the sar plug-in itself. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/general.py1
-rw-r--r--sos/plugins/sar.py1
2 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/general.py b/sos/plugins/general.py
index fbf39917..d7059e66 100644
--- a/sos/plugins/general.py
+++ b/sos/plugins/general.py
@@ -28,7 +28,6 @@ class General(Plugin):
"/etc/sos.conf",
"/etc/sysconfig",
"/proc/stat",
- "/var/log/sa",
"/var/log/pm/suspend.log",
"/var/log/up2date",
"/etc/hostid",
diff --git a/sos/plugins/sar.py b/sos/plugins/sar.py
index c09055cb..6c093237 100644
--- a/sos/plugins/sar.py
+++ b/sos/plugins/sar.py
@@ -33,6 +33,7 @@ class Sar(Plugin,):
return True
def setup(self):
+ self.add_copy_spec("/var/log/sa")
dirList = os.listdir(self.sa_path)
# find all the sa file that don't have an existing sar file
for fname in dirList: