def listActiveVMs(vmid, server): try: doms = KVMManager.retrieveActiveDomainsByUUID() XmlRpcClient.sendAsyncMonitoringActiveVMsInfo(vmid, "SUCCESS", doms, server) except Exception as e: # Send async notification XmlRpcClient.sendAsyncMonitoringActionStatus(vmid, "FAILED", str(e)) KVMMonitoringDispatcher.logger.error(str(e)) return
def listActiveVMs(id,server): try: doms = XendManager.retrieveActiveDomainsByUUID() XmlRpcClient.sendAsyncMonitoringActiveVMsInfo(id,"SUCCESS",doms,server) except Exception as e: #Send async notification XmlRpcClient.sendAsyncMonitoringActionStatus(id,"FAILED",str(e)) XenMonitoringDispatcher.logger.error(str(e)) return