This commit is contained in:
garnier-quentin 2020-06-15 10:12:44 +02:00
parent 46438121c9
commit 82e048efc0
1 changed files with 2 additions and 3 deletions

View File

@ -66,9 +66,8 @@ sub check {
$self->{components}->{disk}->{total}++;
my $temperature_value = defined($result->{diskTemperature}) && $result->{diskTemperature} != -1 ? $result->{diskTemperature} : '-';
my $temperature_unit = $temperature_string ne '' && $self->{mib_ver} eq 'v6' ? 'C' : '';
$temperature_unit = $temperature_string ne '' && $self->{mib_ver} eq 'v4' ? 'F' : '';
my $temperature_unit = $self->{mib_ver} eq 'v6' ? 'C' : 'F';
$self->{output}->output_add(
long_msg => sprintf(
"disk '%s' status is %s [temperature: %s%s]",