Many thanks for the reply and idea. I was wanting something similar to diskcheck in which I could set defaults, excludes filesystems and certain types etc, implement some warning thresholds and limit paging.
I have some scripts for HPUX, so I might just try to "port" them. If I do, i'll post it. Thanks again. ------------------ Marvin Blackburn Systems Administrator Glen Raven "He's no failure. He's not dead yet" --William Lloyd George > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Sean Estabrooks > Sent: Friday, September 19, 2003 2:33 PM > To: [EMAIL PROTECTED] > Subject: Re: script to monitor diskspace > > > 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 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list