#!/bin/sh
ALERT=40
    df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output;
    do
    usep=$(echo $output | awk '{ printf "%d", $1}' | cut -d'%' -f1 )
    partition=$(echo $output | awk '{ printf "%d", $0 }' )
   # if [ $usep -ge $ALERT ]; then
#echo $usep;
echo -e "Disk space \"$partition ($usep%)\\n$output" 2>&1 | sed '1!b;s/^/To: srinivas@glovision.co,support@glovision.co\nSubject:[GLOTRAX-SERVER] Disk Space for testing\n\n/' | /usr/sbin/sendmail -t
#echo $output
   # fi
    done
