You can use this script for checking your server reboot or not.

You can use SendEmail app for sending your alerts. You can find it below link.

sendEmail-v1.56.tar

After adding it crontab, you can keep your system under control.Such as checking for every 5 min , you can add below line to crontab