rendered paste body#!/bin/bashALERT=90df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output;do usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 ) partition=$(echo $output | awk '{ print $2 }' ) ipaddress=$(ifconfig |grep "inet addr:" | awk ' {print $2 }' | grep -vE '^addr:127.0.0.1' | cut -d":" -f2 ) if [ $usep -ge $ALERT ]; then echo "$partition ($usep%) on $(hostname)-(ip addr: $ipaddress) as on $(date)" | mail -s "Alert: $(hostname) free space alert!" lofasz@cent.os fidone