Here's what I use, it alerts me when the specified filesystem is < 1G

[EMAIL PROTECTED];export mail_id          
# min freespace is in K 1000000=1G                            
min_freespace=1000000;export min_freespace                    
# check to see if running out of filesystem space and page me

freespace=`df -b /home2 | tail -1 | awk '{printf "%s\n",$2}'`; export
freespace
if [ $freespace -lt $min_freespace ] ; then

 echo "Running out of filesystem space $freespace "

 echo . | mail -s "Alert - logfile space $freespace K" $mail_id

fi


-----Original Message-----
Sent: Wednesday, May 23, 2001 12:36 PM
To: Multiple recipients of list ORACLE-L


Hi Gurus
Does any one having scripts to know disk space once particular partion =>75%
let assume the below is not exact output of df -k command
$df -k

/u01                68
/u02                40
/u03                53
/u04                76
As the disk partition reach to 75% or more.We need to get email alert.
If some have such kind of script let me know.

Thanks
-seema

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Seema Singh
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Lally, Tom (MA09)
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to