I have written a quick&dirty bash script to check which gateway is still working and switch to it. It also switches back to the primary gateway as soon as it is available again. The script can be called on a regular basis via cron.
Sometimes I want to follow the changes of some website which does not provide an RSS feed. For such cases I have written a simple bash script that I run periodically with cron.