diff --git a/server.py b/server.py index 3cf8f28dc17ff0c58dc8dfecb1193d0a08039d62..ba4a6b555cd3545ed6161d5c57509c9543057333 100644 --- a/server.py +++ b/server.py @@ -629,8 +629,11 @@ def dbstatus(): status = {} variables = {} for host in config.get('MYSQL_DBSTATUS_HOSTS', [])+[config.get('MYSQL_HOST', None)]: - for _host in show('SHOW VARIABLES LIKE "wsrep_cluster_address"', host=host)['wsrep_cluster_address'][len('gcomm://'):].split(','): - hosts.add(_host) + try: + for _host in show('SHOW VARIABLES LIKE "wsrep_cluster_address"', host=host)['wsrep_cluster_address'][len('gcomm://'):].split(','): + hosts.add(_host) + except: + pass for host in sorted(list(hosts)): try: status[host] = show('SHOW GLOBAL STATUS LIKE "wsrep%"', host=host)