mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
Merge pull request #381 from s-duret/patch-1
Problème avec la gestion des seuils
This commit is contained in:
commit
a94612e1cf
@ -74,7 +74,7 @@ SELECT extract(epoch FROM now()) AS epok
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $diff = $result - $ltime;
|
my $diff = $result - $ltime;
|
||||||
my $exit_code = $self->{perfdata}->threshold_check(value => $result, threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
my $exit_code = $self->{perfdata}->threshold_check(value => $diff, threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
||||||
|
|
||||||
$self->{output}->output_add(severity => $exit_code,
|
$self->{output}->output_add(severity => $exit_code,
|
||||||
short_msg => sprintf("%.3fs time diff between servers", $diff));
|
short_msg => sprintf("%.3fs time diff between servers", $diff));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user