SV-261919r1000762_rule
V-261919
SRG-APP-000359-DB-000319
CD16-00-007300
CAT II
10
Note: The following instructions use the PGDATA and PGVER environment variables. Refer to APPENDIX-F for instructions on configuring PGDATA and APPENDIX-H for PGVER.
Configure the system to notify appropriate support staff immediately upon storage volume utilization reaching 75 percent.
PostgreSQL does not monitor storage; however, it is possible to monitor storage with a script.
##### Example Monitoring Script
#!/bin/bash
PGDATA=/var/lib/pgsql/${PGVER?}/data
CURRENT=$(df ${PGDATA?} | grep / | awk '{ print $5}' | sed 's/%//g')
THRESHOLD=75
if [ "$CURRENT" -gt "$THRESHOLD" ] ; then
mail -s 'Disk Space Alert' mail@support.com << EOF
The data directory volume is almost full. Used: $CURRENT
EOF
fi
Schedule this script in cron to run around the clock.
Review system configuration.
If no script or tool is monitoring the partition for the PostgreSQL log directories, this is a finding.
If appropriate support staff are not notified immediately upon storage volume utilization reaching 75 percent, this is a finding.
V-261919
False
CD16-00-007300
Review system configuration.
If no script or tool is monitoring the partition for the PostgreSQL log directories, this is a finding.
If appropriate support staff are not notified immediately upon storage volume utilization reaching 75 percent, this is a finding.
M
5598