mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-13 18:50:01 -04:00
Merge pull request #2156 from RincewindsHat/check_mysql_server_info
check_mysql: Assume MySQL server by default (in replica check)
This commit is contained in:
commit
92f37f90c3
1 changed files with 2 additions and 5 deletions
|
|
@ -219,16 +219,13 @@ int main(int argc, char **argv) {
|
|||
use_deprecated_slave_status = true;
|
||||
}
|
||||
}
|
||||
} else if (strstr(server_version, "MySQL") != NULL) {
|
||||
// Looks like MySQL
|
||||
} else {
|
||||
// Looks like MySQL or at least not like MariaDB
|
||||
if (major_version < 8) {
|
||||
use_deprecated_slave_status = true;
|
||||
} else if (major_version == 10 && minor_version < 4) {
|
||||
use_deprecated_slave_status = true;
|
||||
}
|
||||
} else {
|
||||
printf("Not a known sever implementation: %s\n", server_version);
|
||||
exit(STATE_UNKNOWN);
|
||||
}
|
||||
|
||||
char *replica_query = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue