code: def daemons_reachability_check(self):
          
          # First look if it's not too early to ping
          start = time.time()
          if self.daemons_last_reachable_check and \
                  self.daemons_last_reachable_check + self.conf.daemons_check_period > start:
              logger.debug("Too early to check daemons reachability, check period is %.2f seconds",
                           self.conf.daemons_check_period)
              return True
  
          _t0 = time.time()
          logger.debug("Alignak daemons reachability check")
          result = self.dispatcher.check_reachable()
          statsmgr.timer('dispatcher.check-alive', time.time() - _t0)
  
          _t0 = time.time()
          logger.debug("Alignak daemons status get")
          events = self.dispatcher.check_status_and_get_events()
          duration = time.time() - _t0
          statsmgr.timer('dispatcher.check-status', duration)
          logger.debug("Getting daemons status duration: %.2f seconds", duration)
  
          # Send the collected events to the Alignak logger
          for event in events:
              event.prepare()
              make_monitoring_log(event.data['level'], event.data['message'],
                                  timestamp=event.creation_time, to_logger=True)
  
              # Add to the recent events for the WS endpoint
              event.data['timestamp'] = event.creation_time
              event.data['date'] = datetime.fromtimestamp(event.creation_time).\
                  strftime(self.conf.events_date_format)
              event.data.pop('instance_id')
              self.recent_events.append(event.data)
  
          # Set the last check as now
          self.daemons_last_reachable_check = start
  
          logger.debug("Checking daemons reachability duration: %.2f seconds", time.time() - start)
  
          return result
docs: Manage the list of Alignak launched daemons
  
           Check if the daemon process is running
  
          :return: True if all daemons are running, else False