If you want something simple, try a variation of this
In the clearcase administrators crontab:
echo `df -k|grep vobstorage$ |perl -ane '$F[4]=~/(.*)%/; if($1<80){print
"GREEN"}else{print $1<90?"AMBER":"RED"}; '`|mail user@location
<mailto:user@location>
where vobstorage is the path to the vob storage area
Alun
-----Original Message-----
From: Juergen Amthauer [SMTP:juergen.amthauer@nbg6.siemens.de
Sent: Tuesday, February 29, 2000 12:49 PM
To: cciug@Rational.Com
Subject: [cciug] ALERT script if HD is full on Solaris ?
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 ...
--
best regards
+------------------------------------------------------------------+
Juergen Amthauer | mailto:Juergen.Amthauer@nbg6.siemens.de
<mailto:Juergen.Amthauer@nbg6.siemens.de>
Product Integration | mailto:juergen.pat@t-online.de
<mailto:juergen.pat@t-online.de> (private)
Siemens AG, EV NL D3 | WWW : http://www.nbg6.siemens.de/~amthauer
<http://www.nbg6.siemens.de/~amthauer>
Humboldtstrasse 59 | Voice :+49-911-433-8351
D-90459 Nuremberg | Fax :+49-911-433-5494
Germany |
+------------------------------------------------------------------+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:23:31 EDT