thanks LKBrwnDBA for your answer too.
Only an additional question, now, the e-mail comes with its body :
88%---> /opt
but if i want to the e-mail comes with its head like this:
capacity Mounted%--->
88%---> /opt
it is possible to do that? how ??
Meanwhile i work with your advices but if...
thanks PHV for your answer.
Humm i try to explain my issue :
1.- /opt --> 81 used.
2.- If i executed:
2.1.- script.sh 85 <ENTER>
Result now: I receive an e-mail with that body:
capacity Mounted%--->
DESIRABLE RESULT: i Wont...
Thanks guy for your answer..
I changed (;) but unfortunatelly the behavior is the same. My code shows here:
FEC_REPORT=`date "+%m/%d/%y %k:%M"`
export MAILTO="algo@dominio.com"
FS_LIMIT=$1
FS_GT=`df -k|grep -v boot|grep -v shm|awk '{print $5" "$6}' |/usr/xpg4/bin/awk -F"%" -v...
PHV
thanks for your answers but i want to know how can i fix or change something in script in order to receive ONLY e-mail messages when the threshold value exceeds.
If the threshold value doesnt exceeds i wont receive an e-mail.
Actually either the threshold exceeds or no i received an e-mail...
dear all.
i'm a dba and i'm newbie with awk but im ready to give up with this --> :S .
So, i want to schedule a task in crontab at solaris that send e-mail message ONLY if the amount of GB in my filesystems exceeds the threshold configured.
The problem is that every execution (either exceeds...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.