Esempio n. 1
0
def main():
    logger.info("OFELIA XEN Agent")

    checkArgs()

    #If -b is passed, demonize it
    if len(sys.argv) == 2 and sys.argv[1] == "-b":
        forkAndExitFather()

    ##testing
    #processXmlQuery("https://147.83.206.92:9229",1,sys.argv[1])
    #print "Main ends..."

    #Engage XMLRPC
    #logger.debug("Trying to engage XMLRPC server...")
    XmlRpcServer.createInstanceAndEngage(processXmlQuery)

    logger.debug("This is unreachable!")
Esempio n. 2
0
def main():
	logger.info("OFELIA XEN Agent")	
	
	checkArgs()

	#If -b is passed, demonize it 
	if len(sys.argv) == 2 and sys.argv[1] == "-b" :
		forkAndExitFather()

	##testing	
	#processXmlQuery("https://147.83.206.92:9229",1,sys.argv[1])
	#print "Main ends..." 
	logger.debug("Starting LibvirtMonitoring...")
	try:
		LibvirtMonitor.initialize()
	except Exception as e:
		logger.debug("LibvirtMonitoring failed: %s" % (e))
	logger.debug('LibvirtMonitoring started')
	#Engage XMLRPC
	logger.debug("Trying to engage XMLRPC server...")
	XmlRpcServer.createInstanceAndEngage(processXmlQuery)	
	logger.debug("This is unreachable!")	
Esempio n. 3
0
def main():
    logger.info("OFELIA XEN Agent")

    checkArgs()

    # If -b is passed, demonize it
    if len(sys.argv) == 2 and sys.argv[1] == "-b":
        forkAndExitFather()

        ##testing
        # processXmlQuery("https://147.83.206.92:9229",1,sys.argv[1])
        # print "Main ends..."
    logger.debug("Starting LibvirtMonitoring...")
    try:
        LibvirtMonitor.initialize()
    except Exception as e:
        logger.debug("LibvirtMonitoring failed: %s" % (e))
    logger.debug("LibvirtMonitoring started")
    # Engage XMLRPC
    logger.debug("Trying to engage XMLRPC server...")
    XmlRpcServer.createInstanceAndEngage(processXmlQuery)
    logger.debug("This is unreachable!")
Esempio n. 4
0
def main():
    #Engage XMLRPC
    XmlRpcServer.createInstanceAndEngage(None)
Esempio n. 5
0
def main():
    #Engage XMLRPC
    XmlRpcServer.createInstanceAndEngage(None)