Get Disk Space Email Alerts from your Linux Servers

Headless and unmonitored servers sometimes becomes a pain when your server stops responding and later you figure out it was due to 100% disk usage. This simple php script can periodicly check for disk usage and send you email alert when the disk usage is above 90%.

Step 1) You will need php-cli and come other packages too achive this. In ubuntu or debian you can do this by