def get_sd_configcheck(agentConfig, configs):
 print '\nSource of the configuration objects built by the agent:\n'
 for (check_name, config) in configs.iteritems():
  print ('Check "%s":\n  source --> %s\n  config --> %s\n' % (check_name, config[0], config[1]))
 try:
  print_containers()
 except Exception:
  print 'Failed to collect containers info.'
 try:
  print_templates(agentConfig)
 except Exception:
  print 'Failed to collect configuration templates.'

def get_sd_configcheck ( agentConfig , configs ) : print '\nSource of the configuration objects built by the agent:\n' for ( check_name , config ) in configs . iteritems ( ) : print ( 'Check "%s":\n  source --> %s\n  config --> %s\n' % ( check_name , config [ 0 ] , config [ 1 ] ) ) try : print_containers ( ) except Exception : print 'Failed to collect containers info.' try : print_templates ( agentConfig ) except Exception : print 'Failed to collect configuration templates.'
trace how the configuration objects are loaded and from where .