Fix #5150
This commit is contained in:
parent
4041112ccf
commit
bba5f21bbc
|
@ -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();
|
||||
|
|
|
@ -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}++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue