Lines Matching refs:hostname
63 def __init__(self, hostname, pid, ppid=None):
64 self.hostname = hostname
69 return (self.hostname, self.pid)
73 return '%s/%s' % (self.hostname, self.pid)
179 # maps hostname to Drone object
186 # map drone hostname to time stamp of email that
201 for hostname in drone_hostnames:
202 self._add_drone(hostname)
244 def _add_drone(self, hostname):
245 logging.info('Adding drone %s', hostname)
246 drone = drones.get_drone(hostname)
248 self._drones[drone.hostname] = drone
252 def _remove_drone(self, hostname):
253 self._drones.pop(hostname, None)
272 for hostname, drone in self._drones.iteritems():
274 server = server_manager_utils.get_servers(hostname=hostname)[0]
286 section, '%s_disabled' % hostname, default='')
289 section, '%s_max_processes' % hostname, type=int,
293 section, '%s_users' % hostname, default=None)
298 logging.info('Drone %s.max_processes: %s', hostname,
300 logging.info('Drone %s.enabled: %s', hostname, drone.enabled)
301 logging.info('Drone %s.allowed_users: %s', hostname,
303 logging.info('Drone %s.support_ssp: %s', hostname,
320 drone.hostname)
325 return self._drones[process.hostname]
356 '%s.%s' % (drone.hostname.replace('.', '_'), method)):
377 contents.process = Process(drone.hostname, pid)
398 process = Process(drone.hostname, int(process_info['pid']),
424 and contents.process.hostname == drone.hostname)
430 '%s.%s' % (drone.hostname.replace('.', '_'),
447 (drone.hostname, format(percent, '.2%')))
449 last_notified = self._notify_record.get(drone.hostname, 0)
456 self._notify_record[drone.hostname] = now
521 drone_hostname = drone.hostname.replace('.', '_')
527 drone_pid = drone.hostname, int(process_info['pid'])
614 wrapper.drone.hostname in
657 logging.info('Checking drone %s', drone.hostname)
662 or drone.hostname in drone_hostnames_allowed)
664 logging.debug('Drone %s not allowed: ', drone.hostname)
668 'packaging.', drone.hostname)
678 drone.hostname, drone.active_processes, num_processes,
683 drone_summary = ','.join('%s %s/%s' % (drone.hostname,
757 logging.info('log file = %s:%s', drone.hostname, log_file)
823 drone_pid = process.hostname, process.pid