added fail_tolerance option so notifications are only sent out after

the fail_tolerance count has been exceeded