Fixing corrupt rpms hide_pt.sh
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.

2 Responses to “diskusage.sh”

  1. Scott Bateman Says:

    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

  2. Rob Biggers Says:

    I have used this little utility before. Thanks.

    Rob

Leave a Reply