Merge pull request #1942 from UrBnW/bladetemp

Better handle Blade/Flex temp thresholds
This commit is contained in:
qgarnier 2020-04-17 15:14:12 +02:00 committed by GitHub
commit 72566bc372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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]",