}
if ($return eq '') {
- return "All DIMMS OK ($num_dimms) ";
+ return "DIMMS OK ($num_dimms) ";
} else {
return $return;
}
}
$temp_num = $1;
- $num_temp++;
my @line = split /\s+/, $line;
my $zone = $line[1];
$current_temp =~ s/(.*)C.*/$1/;
$threshold =~ s/(.*)C.*/$1/;
+ next if ($threshold eq '-');
+ $num_temp++;
my $off = $threshold - $current_temp;
if ($off <= 0) {
}
}
-my @output = `echo "$command"|hpasmcli 2>&1`;
+my @output = `echo "$command"|sudo hpasmcli 2>&1`;
if (($? >> 8) != 0) {
print "UNKNOWN: Can't exec hpasmcli: @output\n";
exit 3;