if [ $home_usage -ge $Alert ] ; then
#send a mail to the designated admin
mail -s "Excessive Disk Usage on $ServerIdentity" $Admin <<EOF
The disk usage on $ServerIdentity has exceeded $Alert%.
The relevant information from the output of "df" is: $human_home_usage.
This should be fixed immediately, as full disks can cause the server to crash.
EOF
if [ $usr_usage -ge $Alert ] ; then
#send a mail to the designated admin
mail -s "Excessive Disk Usage on $ServerIdentity" $Admin <<EOF
The disk usage on $ServerIdentity has exceeded $Alert%.
The relevant information from the output of "df" is: $human_usr_usage.
This should be fixed immediately, as full disks can cause the server to crash.
EOF
fi
if [ $var_usage -ge $Alert ] ; then
#send a mail to the designated admin
mail -s "Excessive Disk Usage on $ServerIdentity" $Admin <<EOF
The disk usage on $ServerIdentity has exceeded $Alert%.
The relevant information from the output of "df" is: $human_var_usage.
This should be fixed immediately, as full disks can cause the server to crash.
EOF
fi