My friend and I run a server, but since it's not exactly using the best setup, it can have irregular downtimes. Also, we take it down every now and then for random ideas and testing.

Anyway, we have a spare computer that previously was the base for the server. It's running Ubuntu 9.04 Alpha on ext4, just to test. However, we had the idea to have it run a script that continuously pings the server. If the server is up, it doesn't do anything. However, if the server goes down, it changes the Twitter status to "server is down, please wait until it is back up again". Twitter could then forward the text to our cellphones, so we immediately know.

Does anyone have any advice on how to do this?

lhowaf

April 7th, 2009, 02:37 AM

There is a fair amount of reference material here:
http://www.newwebplatform.com/tips-and-tutorials/Twitter