def get_server_status():
 server_status = {}
 concerns = False
 disk_treshold = int(settings.get_value('SERVER', 'logs_disk_usage_treshold', default='80'))
 used_space_logs = _get_logs_used_space()
 if (used_space_logs > disk_treshold):
  concerns = True
 server_status['used_space_logs'] = used_space_logs
 scheduler_running = _process_running('autotest-scheduler')
 if (not scheduler_running):
  concerns = True
 server_status['scheduler_running'] = scheduler_running
 watcher_running = _process_running('autotest-scheduler-watcher')
 if (not watcher_running):
  concerns = True
 server_status['scheduler_watcher_running'] = watcher_running
 if settings.get_value('INSTALL_SERVER', 'xmlrpc_url', default=''):
  install_server_running = (get_install_server_profiles() is not None)
  if (not install_server_running):
   concerns = True
 else:
  install_server_running = False
 server_status['install_server_running'] = install_server_running
 server_status['concerns'] = concerns
 return server_status

def get_server_status ( ) : server_status = { } concerns = False disk_treshold = int ( settings . get_value ( 'SERVER' , 'logs_disk_usage_treshold' , default = '80' ) ) used_space_logs = _get_logs_used_space ( ) if ( used_space_logs > disk_treshold ) : concerns = True server_status [ 'used_space_logs' ] = used_space_logs scheduler_running = _process_running ( 'autotest-scheduler' ) if ( not scheduler_running ) : concerns = True server_status [ 'scheduler_running' ] = scheduler_running watcher_running = _process_running ( 'autotest-scheduler-watcher' ) if ( not watcher_running ) : concerns = True server_status [ 'scheduler_watcher_running' ] = watcher_running if settings . get_value ( 'INSTALL_SERVER' , 'xmlrpc_url' , default = '' ) : install_server_running = ( get_install_server_profiles ( ) is not None ) if ( not install_server_running ) : concerns = True else : install_server_running = False server_status [ 'install_server_running' ] = install_server_running server_status [ 'concerns' ] = concerns return server_status
get autotest server system information .