mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
fix(mysql/mariadb): use the appropriate last error message (#5244)
Use the proper mariadb message when checking mysql replication state Refs: CTOR-1004
This commit is contained in:
parent
9bac8e5d0c
commit
938557e2fd
@ -222,7 +222,7 @@ sub check_slave {
|
|||||||
$self->{servers}->{ $options{name} }->{thread_io} = {
|
$self->{servers}->{ $options{name} }->{thread_io} = {
|
||||||
display => $options{name},
|
display => $options{name},
|
||||||
running => $running,
|
running => $running,
|
||||||
error_message => defined($result->{Last_Error}) ? $result->{Last_Error} : ''
|
error_message => defined($result->{Last_IO_Error}) ? $result->{Last_IO_Error} : ''
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (defined($result->{Slave_SQL_Running})) {
|
if (defined($result->{Slave_SQL_Running})) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user