Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arcconf #118

Merged
merged 2 commits into from
Sep 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions check_raid.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2470,7 +2470,7 @@ sub program_names {
sub commands {
{
'getstatus' => ['-|', '@CMD', 'GETSTATUS', '1'],
'getconfig' => ['-|', '@CMD', 'GETCONFIG', '$ctrl', 'AL', 'nologs'],
'getconfig' => ['-|', '@CMD', 'GETCONFIG', '$ctrl', 'AL'],
}
}

Expand Down Expand Up @@ -2585,7 +2585,7 @@ sub parse_ctrl_config {
# Controller information, Logical/Physical device info
my (%c, @ld, $ld, @pd, $ch, $pd);

my $fh = $this->cmd('getconfig', { ctrl => $ctrl });
my $fh = $this->cmd('getconfig', { '$ctrl' => $ctrl });
my ($section, $subsection, $ok);
while (<$fh>) {
chomp;
Expand Down Expand Up @@ -2894,8 +2894,10 @@ sub check_controller {
}

# Battery status
my @s = $this->battery_status($c);
push(@status, @s) if @s;
if ($this->bbu_monitoring) {
my @s = $this->battery_status($c);
push(@status, @s) if @s;
}

return @status;
}
Expand Down