On Fri, 19 Sep 2003 08:41:11 -0400 Marvin Blackburn <[EMAIL PROTECTED]> wrote:
> Does anyone have a shell script or procedure to monitor disk space. > i.e. notify someone when a filesystem gets too big? > Lots of ways to do this of course. One simplistic way is to add the following line to one users crontab file*: 59 * * * * df -h | awk '$5 > 80 && NR > 1' The user will be emailed a report only if any filesystem has greater than 80% usage. In the above example, the usage check is made every hour. If this user has a .forward file in their home directory the email can be sent wherever they like. One downside to this method is that the report will be sent _every_ hour until the usage is reduced. HTH, Sean * "crontab -e" is an easy way to update a users crontab. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list