Postgres Disk Space for Linux/Unix O/S

This custom alert executes the df -k command on a Linux/Unix system to retrieve disk space usage information. It parses the output to extract relevant data for each drive, such as the total and available space. The alert then calculates the percentage of free disk space for each drive and sends the results to a DPA for comparisons to the defined thresholds.

To set this up, create the function on each instance and an alert of the type Custom SQL Multiple Numeric. Paste the provided SQL script (only the SELECT at the bottom of the attached script) into the alert configuration and format it to resemble the example shown below: