aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/pcp.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/sos/plugins/pcp.py b/sos/plugins/pcp.py
index ea86d8b9..da7158a6 100644
--- a/sos/plugins/pcp.py
+++ b/sos/plugins/pcp.py
@@ -150,6 +150,16 @@ class Pcp(Plugin, RedHatPlugin, DebianPlugin):
# Need to get the current status of the PCP infrastructure
self.add_cmd_output("pcp")
-
+ # Collect a summary for the current day
+ res = self.get_command_output('pcp')
+ if res['status'] == 0:
+ for line in res['output'].splitlines():
+ if line.startswith(' pmlogger:'):
+ arc = line.split()[-1]
+ self.add_cmd_output(
+ "pmstat -S 00:00 -T 23:59 -t 5m -x -a %s" % arc,
+ root_symlink="pmstat"
+ )
+ break
# vim: set et ts=4 sw=4 :