Better handle Blade/Flex temp thresholds
This commit is contained in:
parent
d58e3e1815
commit
31347674f7
|
@ -47,6 +47,11 @@ sub check {
|
||||||
$temperature = $1 if ($1 > $temperature);
|
$temperature = $1 if ($1 > $temperature);
|
||||||
my $critical_mib = ($warning_mib + $2) / 2;
|
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->{components}->{temperature}->{total}++;
|
||||||
|
|
||||||
$self->{output}->output_add(long_msg =>
|
$self->{output}->output_add(long_msg =>
|
||||||
|
|
|
@ -60,6 +60,11 @@ sub check {
|
||||||
$temperature = $1 if ($1 > $temperature);
|
$temperature = $1 if ($1 > $temperature);
|
||||||
my $critical_mib = ($warning_mib + $2) / 2;
|
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(
|
$self->{output}->output_add(
|
||||||
long_msg => sprintf(
|
long_msg => sprintf(
|
||||||
"temperature switch '%s' is %s C [instance: %s]",
|
"temperature switch '%s' is %s C [instance: %s]",
|
||||||
|
|
Loading…
Reference in New Issue