Here's some "bones" to examine.
You can vary the message based on the return value $?. (Different versions of UNIX/Progress give different results).
Code:
proutil [i]database[/i] -C busy > /dev/null 2>&1
if [ $? = 0 ]; then
echo "Database [i]database [/i]is down" > alert.d
mailx -s "DATABASE DOWN" [email="user@domain.com"][i]user@domain.com[/i][/email] < alert.d
fi