Get your server to email and SMS you when root login occurs

Its quite simple all you need to do is register for a hotmail account, its all free, and add your mobile number, so when you receive email you get a text message. Therefore not of that waiting to check emails you will know in advance and can act open it, whats even better you can reply to the text message with M to get more of the message, it normally costs me my texting standing rate.

--
Login to your server via SSH as root.

(If you disabled root logins login with your other username, and su to root)

Type: pico .bash_profile
At the end of the file put this:
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" offsite@emailaddress.com

- Taken from hostinglife.com