mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 18:33:45 +01:00
This commit is contained in:
parent
db7c41f827
commit
da50ee02e4
@ -850,7 +850,7 @@ sub nagios {
|
|||||||
} elsif ($params{mode} =~ /^server::database::transactions/) {
|
} elsif ($params{mode} =~ /^server::database::transactions/) {
|
||||||
$self->add_nagios(
|
$self->add_nagios(
|
||||||
$self->check_thresholds($self->{transactions_per_sec}, 10000, 50000),
|
$self->check_thresholds($self->{transactions_per_sec}, 10000, 50000),
|
||||||
sprintf "%s has %.4f transactions / sec",
|
sprintf "\n%s has %.4f transactions / sec",
|
||||||
$self->{name}, $self->{transactions_per_sec});
|
$self->{name}, $self->{transactions_per_sec});
|
||||||
$self->add_perfdata(sprintf "%s_transactions_per_sec=%.4f;%s;%s",
|
$self->add_perfdata(sprintf "%s_transactions_per_sec=%.4f;%s;%s",
|
||||||
$self->{name}, $self->{transactions_per_sec},
|
$self->{name}, $self->{transactions_per_sec},
|
||||||
@ -958,7 +958,7 @@ sub nagios {
|
|||||||
} else {
|
} else {
|
||||||
$self->add_nagios(
|
$self->add_nagios(
|
||||||
$self->check_thresholds($self->{backup_age}, 48, 72),
|
$self->check_thresholds($self->{backup_age}, 48, 72),
|
||||||
sprintf "%s backupped %dh ago", $self->{name}, $self->{backup_age});
|
sprintf "\n%s backupped %dh ago", $self->{name}, $self->{backup_age});
|
||||||
}
|
}
|
||||||
$self->add_perfdata(sprintf "'%s_bck_age'=%d;%s;%s",
|
$self->add_perfdata(sprintf "'%s_bck_age'=%d;%s;%s",
|
||||||
$self->{name}, $self->{backup_age},
|
$self->{name}, $self->{backup_age},
|
||||||
|
Loading…
Reference in New Issue
Block a user