Showing results for 
Search instead for 
Do you mean 

Space monitoring

Contributor

Space monitoring


Hi gurus

can you help me on a shell script which is used to monitor the file system space
example /opt/oracle if it reaches 80% it has to intimate , same script has to monitor /opt/java if it reaches 85% it has to intimate.

Thanks in Advance
2 REPLIES
Honored Contributor Honored Contributor

Re: Space monitoring

how about something like to get you started...

until [ `bdf /opt/oracle |awk '/oracle/{print 0+$(NF-1)}'` -ge 80 ]
do
sleep 600
done
take some action here when /opt/oracle is 80%


Don't forget to have a look at this too.
http://forums1.itrc.hp.com/service/forums/helptips.do?#33


-denver
Exalted Contributor Exalted Contributor

Re: Space monitoring

Shalom,

There are several good examples in this thread and the two that preceeded it.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050

I believe I've got production code in there.

Lots of other goodies too.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com