Nov 03
diskusage.sh is a tiny shell script that checks the usage(%) of a filesystem, compares it against a set threshold value, and if it is greater than the threshold value, sends an email with a disk full warning.
p. You can simply download the shell script to a folder, and set up a cron job that runs the script every two hours or so.
p. I wrote this script mainly because it sometimes becomes impossible for me to keep a check on some rogue machines to monitor the disk usage. This script does the job for me.
p. You can download the script here. Feel free to improve the script and send comments.
March 1st, 2005 at 9:22 am
Found this script as a great help.
I added a for-loop to check multiple file systems.
Try this:
for filesystem in '/' '/data' '/home' ...
do
#DISKUSAGE SCRIPT BLOCK
done
February 28th, 2008 at 7:26 am
I have used this little utility before. Thanks.
Rob