+ Fix dell compellent mode

This commit is contained in:
garnier-quentin 2016-05-26 10:22:39 +02:00
parent 3c383d11dc
commit e741f6f1dc
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ sub output {
return $self->{closure_custom_output}->($self);
}
my $first = ${${$self->{key_values}}[0]}{name};
my ($value, $unit) = ($self->{result_values}->{$first . '_absolute'}, $self->{result_values}->{output_absolute_unit});
my ($value, $unit) = ($self->{result_values}->{$first . '_absolute'}, $self->{output_absolute_unit});
if (!defined($self->{output_use})) {
if ($self->{per_second} == 1) {

View File

@ -78,7 +78,7 @@ sub set_counters {
output_template => 'Write Usage : %s %s/s',
output_change_bytes => 2,
perfdatas => [
{ label => 'write_usage', value => 'read_bps_absolute', template => '%d',
{ label => 'write_usage', value => 'write_bps_absolute', template => '%d',
unit => 'b/s', min => 0, label_extra_instance => 1, instance_use => 'display_absolute' },
],
}