Gateway test in ROS

also, look at http://forum.mikrotik.com/t/best-method-to-load-balance-2-internet-line/37337/15

AFAICS it can be modified to use even several ping targets - and no scripting at all