Added funtion to reset status of hosts
Added funtion to update status of failed host