def test_xmlrpc_connection(url):
    conn_status = {}
    conn_status['success'] = False
    conn_status['err_msg'] = None
    c = xmlrpclib.ServerProxy(url)
    try:
        c.system.listMethods()
        conn_status['success'] = True
    except xmlrpclib.ProtocolError as e:
        conn_status['err_msg'] = e.errmsg
    except xmlrpclib.ResponseError:
        conn_status['err_msg'] = 'Caught ResponseError'
    except:
        conn_status['err_msg'] = 'Unknown Error'
    return conn_status
def test_xmlrpc_connection(url):
    conn_status = {}
    conn_status['success'] = False
    conn_status['err_msg'] = None
    c = xmlrpclib.ServerProxy(url)
    try:
        c.system.listMethods()
        conn_status['success'] = True
    except xmlrpclib.ProtocolError as e:
        conn_status['err_msg'] = e.errmsg
    except xmlrpclib.ResponseError:
        conn_status['err_msg'] = 'Caught ResponseError'
    except:
        conn_status['err_msg'] = 'Unknown Error'
    return conn_status