(plugin) network::nortel::standard::snmp - incorrect temperature (#3590)

This commit is contained in:
qgarnier 2022-04-12 08:46:13 +02:00 committed by GitHub
parent fbe0fa7c78
commit 2160014b90

View File

@ -53,7 +53,7 @@ sub check_s5 {
next if ($self->check_filter(section => 'temperature', instance => $instance)); next if ($self->check_filter(section => 'temperature', instance => $instance));
$self->{components}->{temperature}->{total}++; $self->{components}->{temperature}->{total}++;
$result->{s5ChasTmpSnrTmpValue} = sprintf("%.2f", $result->{value} / 2); $result->{value} = sprintf("%.2f", $result->{value} / 2);
$self->{output}->output_add( $self->{output}->output_add(
long_msg => sprintf( long_msg => sprintf(
"temperature '%s' is %s degree centigrade [instance: %s]", "temperature '%s' is %s degree centigrade [instance: %s]",