From c94e3b4af29a9f0f83e4cdd26558f50623e26670 Mon Sep 17 00:00:00 2001 From: Valentin Rakush Date: Sun, 2 Feb 2020 12:36:21 +0000 Subject: [PATCH] Report expired password error into the monitors error log --- lib/MySQL_Monitor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index 0620386bc..3680079c8 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -717,6 +717,10 @@ void * monitor_connect_thread(void *arg) { ) { proxy_error("Server %s:%d is returning \"Access denied\" for monitoring user\n", mmsd->hostname, mmsd->port); } + 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); + } } else { connect_success = true; }