search for: usep

Displaying 1 result from an estimated 1 matches for "usep".

Did you mean: used
2008 Jul 28
3
script
...l-script-to-watch-the-disk-space.html # set admin email so that you can get email ADMIN="me at somewher.com" # set alert level 90% is default ALERT=90 df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do #echo $output usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 ) partition=$(echo $output | awk '{ print $2 }' ) if [ $usep -ge $ALERT ]; then echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" | mail -s "Alert: Almost...