This commit is contained in:
Quentin Garnier 2014-02-03 11:49:27 +01:00
parent 4041112ccf
commit bba5f21bbc
2 changed files with 2 additions and 4 deletions

View File

@ -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();

View File

@ -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}++;