code: def change_max_host_check_attempts(self, host, check_attempts):
          
          host.modified_attributes |= DICT_MODATTR["MODATTR_MAX_CHECK_ATTEMPTS"].value
          host.max_check_attempts = check_attempts
          if host.state_type == u'HARD' and host.state == u'UP' and host.attempt > 1:
              host.attempt = host.max_check_attempts
          self.send_an_element(host.get_update_status_brok())
docs: Modify max host check attempt
          Format of the line that triggers function call::
  
          CHANGE_MAX_HOST_CHECK_ATTEMPTS;<host_name>;<check_attempts>
  
          :param host: host to edit
          :type host: alignak.objects.host.Host
          :param check_attempts: new value to set
          :type check_attempts: int
          :return: None