Automatic monitor disk-space

Hello,

I am trying to find a shell script to monitor diskspace. When the script encounteres a disk which above the treashold, I want an email notification.

My system runs on a Sun Solaris.

Is there anybode around who can help me with such a script?

Norbert

What type of 'help' do you need ? Do you have something written that does not work or just want something someone else has done (a quick search on the Internet will bring many hits such as this one )

RTM,

Thanks for the quick reply.

I wanted a script. Apparently I used the wrong query variables for my search.

Norbert

Hi

Thres=90

df -k | grep -v File | while read FS SZ US AV PER MNT
do
PER1=`echo $PER | awk -F"%" '{print $1}'`
if [ $PER1 -gt 89 ]; then
mail_user "Filesystem $FS is $PER1 percent full"
done