aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2019-01-19 12:57:19 -0500
committerBryn M. Reeves <bmr@redhat.com>2019-03-21 16:23:37 +0000
commit6f03b85a9a18027a61d051b2c92d97c27f6c653f (patch)
tree4d6cbeb6f4dca0193436becc0b3495a8b09c735c
parentd6986773d0a654ab03497818eb54e12b70181a2b (diff)
downloadsos-6f03b85a9a18027a61d051b2c92d97c27f6c653f.tar.gz
[postgresql] Add disk usage summary for psql home
Adds collection of 'du -sh' for the postgres home directory. Related: #1525 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/postgresql.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/plugins/postgresql.py b/sos/plugins/postgresql.py
index 78b03fef..1698b62f 100644
--- a/sos/plugins/postgresql.py
+++ b/sos/plugins/postgresql.py
@@ -74,6 +74,7 @@ class PostgreSQL(Plugin):
def setup(self):
self.do_pg_dump()
+ self.add_cmd_output("du -sh %s" % self.get_option('pghome'))
class RedHatPostgreSQL(PostgreSQL, SCLPlugin):