A008 (disk usage): don't ERROR if log_directory does not exist
Goal
Sometimes log_directory
points to not an existing path. We should catch this situation and don't show an error if it happens.
For example, in CentOS:
[2019-01-25T15:23:55-0500] ========== Perform check: ==========
[2019-01-25T15:23:55-0500] ./resources/checks/A008_disk_usage_fstype.sh
df: '/var/lib/pgsql/9.6/data/pg_log': No such file or directory
./resources/checks/A008_disk_usage_fstype.sh: line 64: $3: unbound variable
[2019-01-25T15:24:02-0500] ========== End of check ===========
TODO
Process error if a directory does not exist.
How to implement
Acceptance criteria
Edited by Victor Yagofarov