From 56f336daf9e284e2c7177eaa5426d692ce848037 Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Mon, 3 Feb 2014 11:49:27 +0100 Subject: [PATCH] Fix #5150 --- .../hardware/server/hpbladechassis/mode/hardware.pm | 2 -- centreon-plugins/storage/hp/lefthand/mode/components/ro.pm | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/centreon-plugins/hardware/server/hpbladechassis/mode/hardware.pm b/centreon-plugins/hardware/server/hpbladechassis/mode/hardware.pm index 91f8f79e4..a1eb4b4b2 100644 --- a/centreon-plugins/hardware/server/hpbladechassis/mode/hardware.pm +++ b/centreon-plugins/hardware/server/hpbladechassis/mode/hardware.pm @@ -85,8 +85,6 @@ sub run { my ($self, %options) = @_; # $options{snmp} = snmp object $self->{snmp} = $options{snmp}; - - 'enclosure', 'manager', 'fan', 'blade', 'network', 'psu', 'temperature', 'fuse' if ($self->{option_results}->{component} eq 'all') { $self->global(); diff --git a/centreon-plugins/storage/hp/lefthand/mode/components/ro.pm b/centreon-plugins/storage/hp/lefthand/mode/components/ro.pm index acb6ab2bb..91f734581 100644 --- a/centreon-plugins/storage/hp/lefthand/mode/components/ro.pm +++ b/centreon-plugins/storage/hp/lefthand/mode/components/ro.pm @@ -57,8 +57,8 @@ sub check { my $number_ro = $self->{global_information}->{$raid_os_count_oid}; for (my $i = 1; $i <= $number_ro; $i++) { - my $ro_name = $arg_result->{values}->{$raid_os_name_oid . "." . $i}; - my $ro_state = $arg_result->{values}->{$raid_os_state_oid . "." . $i}; + my $ro_name = $result->{$raid_os_name_oid . "." . $i}; + my $ro_state = $result->{$raid_os_state_oid . "." . $i}; $self->{components}->{ro}->{total}++;