From 7c1b9ce4307ba7dcf0db07f9b8d824263a7a936d Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Thu, 6 Dec 2012 11:44:43 +0000 Subject: Do not collect archived accounting files in psacct module --- sos/plugins/psacct.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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") -- cgit