This commit is contained in:
qgarnier 2017-10-12 12:42:07 +02:00
parent a8b9adcb71
commit 44fd5eedec
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ sub run {
$current_total += $total;
$total_size += $size;
my ($size_value, $size_unit) = $self->{perfdata}->change_bytes(value => $size);
$self->{output}->output_add(long_msg => sprintf("failover '%s': %d file(s) finded (%s)",
$self->{output}->output_add(long_msg => sprintf("failover '%s': %d file(s) found (%s)",
$failover, $total, $size_value . ' ' . $size_unit));
}
@ -149,7 +149,7 @@ sub run {
my ($status, $total, $size) = $self->check_directory(config => $config, path => $temporary);
if ($status) {
my ($size_value, $size_unit) = $self->{perfdata}->change_bytes(value => $size);
$self->{output}->output_add(long_msg => sprintf("temporary: %d file(s) finded (%s)",
$self->{output}->output_add(long_msg => sprintf("temporary: %d file(s) found (%s)",
$total, $size_value . ' ' . $size_unit));
if ($total > 0) {
$self->{output}->output_add(severity => 'CRITICAL',