Script to monitor disk space usage
Here is a quick and easy script that you can add to your crontab to monitor disk space consumption. Once you hit 85% disk utilization, you automatically send an email to yourself # cat space-monitor.sh #!/bin/bash #This script runs nightly to check disk space usage ADMIN=”macky@supermaru.com” df -h | grep -vE ‘^Filesystem|tmpfs|cdrom’ | awk ‘{print … Read more