Better handle Blade/Flex temp thresholds

This commit is contained in:
UrBnW 2020-04-16 19:18:56 +02:00 committed by Lotfi zaouche
parent d58e3e1815
commit 31347674f7
2 changed files with 10 additions and 0 deletions

View File

@ -47,6 +47,11 @@ sub check {
$temperature = $1 if ($1 > $temperature);
my $critical_mib = ($warning_mib + $2) / 2;
if ($warning_mib == $critical_mib) { #seen on some chassis !
$warning_mib -= 10;
$critical_mib -= 5;
}
$self->{components}->{temperature}->{total}++;
$self->{output}->output_add(long_msg =>

View File

@ -60,6 +60,11 @@ sub check {
$temperature = $1 if ($1 > $temperature);
my $critical_mib = ($warning_mib + $2) / 2;
if ($warning_mib == $critical_mib) { #seen on some chassis !
$warning_mib -= 10;
$critical_mib -= 5;
}
$self->{output}->output_add(
long_msg => sprintf(
"temperature switch '%s' is %s C [instance: %s]",