summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_mysql.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 3d7ec4cd..062ec657 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -219,16 +219,13 @@ int main(int argc, char **argv) {
219 use_deprecated_slave_status = true; 219 use_deprecated_slave_status = true;
220 } 220 }
221 } 221 }
222 } else if (strstr(server_version, "MySQL") != NULL) { 222 } else {
223 // Looks like MySQL 223 // Looks like MySQL or at least not like MariaDB
224 if (major_version < 8) { 224 if (major_version < 8) {
225 use_deprecated_slave_status = true; 225 use_deprecated_slave_status = true;
226 } else if (major_version == 10 && minor_version < 4) { 226 } else if (major_version == 10 && minor_version < 4) {
227 use_deprecated_slave_status = true; 227 use_deprecated_slave_status = true;
228 } 228 }
229 } else {
230 printf("Not a known sever implementation: %s\n", server_version);
231 exit(STATE_UNKNOWN);
232 } 229 }
233 230
234 char *replica_query = NULL; 231 char *replica_query = NULL;