code: def _get_total_hosts_not_monitored(self):
          
          return sum(1 for h in self.hosts if not h.active_checks_enabled and
                     not h.passive_checks_enabled)
docs: Get the number of host not monitored (active and passive checks disabled)
  
          :return: Number of hosts which are not monitored
          :rtype: int