diff --git a/server/modules/monitor/galeramon/galeramon.cc b/server/modules/monitor/galeramon/galeramon.cc index 7ef0bd195..7430911ff 100644 --- a/server/modules/monitor/galeramon/galeramon.cc +++ b/server/modules/monitor/galeramon/galeramon.cc @@ -137,7 +137,11 @@ void GaleraMonitor::update_server_status(MXS_MONITORED_SERVER* monitored_server) /* Check if the the Galera FSM shows this node is joined to the cluster */ const char* cluster_member = - "SHOW STATUS WHERE Variable_name IN" + " SELECT * FROM (" + " SELECT * FROM information_schema.SESSION_STATUS" + " UNION" + " SELECT * FROM information_schema.SESSION_VARIABLES) AS t" + " WHERE Variable_name IN" " ('wsrep_cluster_state_uuid'," " 'wsrep_cluster_size'," " 'wsrep_local_index',"