code: def send_result(self, return_code, output, service_description='', specific_servers=None):
          '''
          Send results
          '''
          if specific_servers == None:
              specific_servers = self.servers
          else:
              specific_servers = set(self.servers).intersection(specific_servers)
  
          for server in specific_servers:
              if self.servers[server]['availability']:
                  try:
                      self.servers[server]['notifier'].svc_result(self.servers[server]['custom_fqdn'],
                                                                  service_description,
                                                                  int(return_code),
                                                                  str(output))
                      LOG.info("[nsca][%s][%s]: Data sent", service_description, self.servers[server]['host'])
                  except (socket.gaierror, socket.error), error:
                      self.servers[server]['availability'] = False
                      LOG.error("[nsca][%s][%s]: %s", service_description, self.servers[server]['host'], error[1])
              else:
                  LOG.error("[nsca][%s][%s]: Data not sent, server is unavailable", service_description, self.servers[server]['host']f send_result(self, return_code, output, service_description='', specific_servers=None):
          '''
          Send results
          '''
          if specific_servers == None:
              specific_servers = self.servers
          else:
              specific_servers = set(self.servers).intersection(specific_servers)
  
          for server in specific_servers:
              if self.servers[server]['availability']:
                  try:
                      self.servers[server]['notifier'].svc_result(self.servers[server]['custom_fqdn'],
                                                                  service_description,
                                                                  int(return_code),
                                                                  str(output))
                      LOG.info("[nsca][%s][%s]: Data sent", service_description, self.servers[server]['host'])
                  except (socket.gaierror, socket.error), error:
                      self.servers[server]['availability'] = False
                      LOG.error("[nsca][%s][%s]: %s", service_description, self.servers[server]['host'], error[1])
              else:
                  LOG.error("[nsca][%s][%s]: Data not sent, server is unavailable", service_description, self.servers[server]['host'])
docs: Send results