aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-12-06 11:44:43 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-12-06 11:44:43 +0000
commit7c1b9ce4307ba7dcf0db07f9b8d824263a7a936d (patch)
tree87378e0cdd6ca6bdf08dc1ff6c561d2f169e75e8
parent75a72388a3bfe1fbe4dce53e22db5754b0c26b66 (diff)
downloadsos-7c1b9ce4307ba7dcf0db07f9b8d824263a7a936d.tar.gz
Do not collect archived accounting files in psacct module
-rw-r--r--sos/plugins/psacct.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/sos/plugins/psacct.py b/sos/plugins/psacct.py
index 3c8765a0..8a640fb0 100644
--- a/sos/plugins/psacct.py
+++ b/sos/plugins/psacct.py
@@ -17,5 +17,13 @@ from sos.plugins import Plugin, RedHatPlugin
class psacct(Plugin, RedHatPlugin):
"""Process accounting related information
"""
+
+ optionList = [("all", "collect all process accounting files",
+ "slow", False)]
+
+ packages = [ "psacct" ]
+
def setup(self):
- self.addCopySpec("/var/account")
+ self.addCopySpec("/var/account/pacct")
+ if self.getOption("all"):
+ self.addCopySpec("/var/account/pacct*.gz")