Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $slavehash = $self->{handle}->selectrow_hashref(q{
- SHOW SLAVE STATUS
- });
- if ((! defined $slavehash->{Seconds_Behind_Master}) &&
- (lc $slavehash->{Slave_IO_Running} eq 'no')) {
- $self->add_nagios_critical(
- "unable to get slave lag, because io thread is not running");
- } elsif (! defined $slavehash->{Seconds_Behind_Master}) {
- $self->add_nagios_critical(sprintf "unable to get replication info%s",
- $self->{handle}->{errstr} ? $self->{handle}->{errstr} : "");
- } else {
- $self->{seconds_behind_master} = $slavehash->{Seconds_Behind_Master};
- }
Add Comment
Please, Sign In to add comment