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!")
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!")
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!")
def main(): #Engage XMLRPC XmlRpcServer.createInstanceAndEngage(None)