code: def get_daemon_stats(self, details=False):
          
          # Call the base Daemon one
          res = super(Alignak, self).get_daemon_stats(details=details)
  
          res.update({'name': self.name, 'type': self.type, 'monitored_objects': {}})
  
          counters = res['counters']
  
          # Satellites counters
          counters['brokers'] = len(self.brokers)
          counters['pollers'] = len(self.pollers)
          counters['reactionners'] = len(self.reactionners)
          counters['receivers'] = len(self.receivers)
  
          if not self.sched:
              return res
  
          # # Hosts/services problems counters
          # m_solver = MacroResolver()
          # counters['hosts_problems'] = m_solver._get_total_host_problems()
          # counters['hosts_unhandled_problems'] = m_solver._get_total_host_problems_unhandled()
          # counters['services_problems'] = m_solver._get_total_service_problems()
          # counters['services_unhandled_problems'] = m_solver._get_total_service_problems_unhandled()
  
          # Get statistics from the scheduler
          scheduler_stats = self.sched.get_scheduler_stats(details=details)
          res['counters'].update(scheduler_stats['counters'])
          scheduler_stats.pop('counters')
          res.update(scheduler_stats)
  
          return res
docs: Increase the stats provided by the Daemon base class
  
          :return: stats dictionary
          :rtype: dict