Check mount point status and send email

#!/bin/ksh
echo “———————————————————————“>output
echo “From     : 1(PRODLIVE)”>>output
echo “Dated    : “`date`>>output
echo “———————————————————————“>>output
echo>>output
echo “OracleBGprocess”>>output
echo “================”>>output
ps -ef |grep ora_>>output
echo>>output
echo “Total Disk Space”>>output
echo “================”>>output
df -h>>output
echo>>output
echo>>output
echo>>output
echo>>output
echo>>output                                     ” ============================= ”
echo>>output                                          ”   MOHAMMAD SHADAB  ”
echo>>output                                     ” THANK YOU AND HAVE A NICE DAY ”
echo>>output                                     ” ============================= ”
mailx -s “PROD LIVE : Disk Space, BGProcess” <output john.doe@company.com mary.bright@company.com

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s