aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")