|
|
|
|
@ -11,7 +11,6 @@
|
|
|
|
|
#include <mutex>
|
|
|
|
|
#include <thread>
|
|
|
|
|
#include <prometheus/counter.h>
|
|
|
|
|
#include "mysqld_error.h"
|
|
|
|
|
#include "MySQL_Protocol.h"
|
|
|
|
|
#include "MySQL_HostGroups_Manager.h"
|
|
|
|
|
#include "MySQL_Monitor.hpp"
|
|
|
|
|
@ -874,13 +873,12 @@ void * monitor_connect_thread(void *arg) {
|
|
|
|
|
(strncmp(mmsd->mysql_error_msg,"ProxySQL Error: Access denied for user",strlen("ProxySQL Error: Access denied for user"))==0)
|
|
|
|
|
) {
|
|
|
|
|
proxy_error("Server %s:%d is returning \"Access denied\" for monitoring user\n", mmsd->hostname, mmsd->port);
|
|
|
|
|
MyHGM->p_update_mysql_error_counter(p_mysql_error_type::proxysql, mmsd->hostgroup_id, mmsd->hostname, mmsd->port, ER_ACCESS_DENIED_ERROR);
|
|
|
|
|
}
|
|
|
|
|
else if (strncmp(mmsd->mysql_error_msg,"Your password has expired.",strlen("Your password has expired."))==0)
|
|
|
|
|
{
|
|
|
|
|
proxy_error("Server %s:%d is returning \"Your password has expired.\" for monitoring user\n", mmsd->hostname, mmsd->port);
|
|
|
|
|
MyHGM->p_update_mysql_error_counter(p_mysql_error_type::proxysql, mmsd->hostgroup_id, mmsd->hostname, mmsd->port, ER_MUST_CHANGE_PASSWORD_LOGIN);
|
|
|
|
|
}
|
|
|
|
|
MyHGM->p_update_mysql_error_counter(p_mysql_error_type::proxysql, mmsd->hostgroup_id, mmsd->hostname, mmsd->port, mysql_errno(mmsd->mysql));
|
|
|
|
|
} else {
|
|
|
|
|
connect_success = true;
|
|
|
|
|
}
|
|
|
|
|
|