Overhaul of the CMS Frontier failover monitoring scripts