Failover Scripting
From MikroTik Wiki
This is an easy to use script for your failover needs.
It works by pinging any IP address you specify using the connections you tell it to. If a ping failure is detected in increases a route's distance in the routing table by an ammount you specify.
WORK IN PROGRESS.