Dear all,
am monitoring the disk size, how can I write a script that if a particular disk size
reaches a threshold value , it should mail a warning to me.. How can I get this done..
am using the following code to monitor :
*****************************************************************
[root@oracle monitor]# vi sysos.sh
set -xv
LOGFILE=/home/oraprod/monitor/sysos.log
echo "Oracle Production Server system log at $(date)" > "$LOGFILE"
# log vmstat. 3 * 5 second interval. Probably better than 1 second as it
# gives more time to average out the load analysis.
df -h >> $LOGFILE
echo "" >> "$LOGFILE"
cat $LOGFILE | mail -s "System status as of $(date +%d-%b-%Y)"
webmail@master.com
***************************************************************************************
how can I add a threshold value.. such that if a particular mount point reaches 75% . it should send the warninig to me. meanwhile, if you can also advise me any enhancements in the above script
any inputs ?
Thanks
Yusuf