Get a status report at admin/reports/status and a cron-triggered e-mail warning when locally mounted disk space on your Drupal server reaches a preset threshold.
The alert e-mail uses the following template:
Alert: {hostname} is {percent}% full
Running out of space {mount} ({percent}% used, {space} avail)
on {hostname} for {site_name}
Requires df
, grep
, and awk
to be in the global server $PATH
available for PHP to use.
Built for and tested with Debian 6, Ubuntu 12.04, and Mac OSX. Diskfree does not work reliably on Ubuntu 8.04. Most Linux-style environments should work, but only the aforementioned are officially supported.
Diskfree is a component of the classic CIA information security triad: confidentiality, integrity and availability. A full disk partition can halt a web server and cause data corruption. From Wikipedia: