Fix #5150
This commit is contained in:
parent
2853904af3
commit
56f336daf9
|
@ -86,8 +86,6 @@ sub run {
|
||||||
# $options{snmp} = snmp object
|
# $options{snmp} = snmp object
|
||||||
$self->{snmp} = $options{snmp};
|
$self->{snmp} = $options{snmp};
|
||||||
|
|
||||||
'enclosure', 'manager', 'fan', 'blade', 'network', 'psu', 'temperature', 'fuse'
|
|
||||||
|
|
||||||
if ($self->{option_results}->{component} eq 'all') {
|
if ($self->{option_results}->{component} eq 'all') {
|
||||||
$self->global();
|
$self->global();
|
||||||
} elsif ($self->{option_results}->{component} eq 'enclosure') {
|
} elsif ($self->{option_results}->{component} eq 'enclosure') {
|
||||||
|
|
|
@ -57,8 +57,8 @@ sub check {
|
||||||
|
|
||||||
my $number_ro = $self->{global_information}->{$raid_os_count_oid};
|
my $number_ro = $self->{global_information}->{$raid_os_count_oid};
|
||||||
for (my $i = 1; $i <= $number_ro; $i++) {
|
for (my $i = 1; $i <= $number_ro; $i++) {
|
||||||
my $ro_name = $arg_result->{values}->{$raid_os_name_oid . "." . $i};
|
my $ro_name = $result->{$raid_os_name_oid . "." . $i};
|
||||||
my $ro_state = $arg_result->{values}->{$raid_os_state_oid . "." . $i};
|
my $ro_state = $result->{$raid_os_state_oid . "." . $i};
|
||||||
|
|
||||||
$self->{components}->{ro}->{total}++;
|
$self->{components}->{ro}->{total}++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue