Re: [cciug] ALERT script if HD is full on Solaris ?

From: Paul M. Sander (pauls@broadvision.com)
Date: Tue Feb 29 2000 - 16:44:16 EST


Juergen Amthauer <juergen.amthauer@nbg6.siemens.de> wrote:
>
> Hi all
>
> Has anyone of you a script which signals via mail or so ... if the
> vobstorage area
> is near to 100 %
>
> ... or even better ... like in startrek
>
> green alert - all is good
> yellow alert - over 80 % disk filled
> red alert - over 90 %
>
> if one has a good idea how to check this automatically please reply,
> it's boring to do
> a df -k from time to time ...

There's a freebie package called "ols" that does linear regressions. If
you run a script under cron that runs df and concatenates its output to
a file, and then feed the contents of the file to ols, you will actually
get a reasonable prediction of when your disk will fill up. I used this
mechanism a few years ago with a CVS repository, saving only the last 21
samples from df, and it worked very well. I plan to implement a similar
capability with ClearCase here.

--
The CEO of my employer requires me to include the following notice in my
signature:

* This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, dissemination of this communication is prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately. --- Paul M. Sander +1 650 261 5174 | To the medieval era's literate few..., the BroadVision, Inc. | turn of the millenium held a particular alure. 585 Broadway | After all, with the stroke of a quill, the Redwood City, CA 94063 USA | world went from DCCCCLXXXXVIIIJ to...M. | -- Rachel Emma Silverman, Wall St. Journal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:23:31 EDT