Sorry about the missing quote, I couldn't test it because it doesn't work on my setup.
I tend to set the "warning" temp to be slightly above normal otherwise you get a huge log! Not sure if you've read but my server lives in a cupboard so if the cupboard vents get blocked I'd have problems! With this script it'd just warn me a few times (I have it set to run every minute) and then would shut down before it gets too hot in there. Only happened once before.
Yup, it's all in "bash". You can google for bash and learn loads (don't read up too much otherwise you'll soon suss I'm a mere novice at it!!

)
Re the emails, are you seeing this issue in your "sent" items? Presumably you are cos they'd not reach your inbox but someone else's, right?
The HDD monitoring scripts are probably throwing errors for the exact same reason as your CPU scripts. The output in my setup differs to yours.
The script is simple string manipulation and presumably the output from mine and yours is not the same.
Issue the following command and send me the output:
Code: Select all
sudo /usr/sbin/smartctl -n standby -a /dev/sdX
where sdX is the mount name of your drive (eg. /dev/sda, /dev/sdb, /dev/sdc and so on)
Ian.