a. In case a controller slot is missing
b. In case an enclosure is missing
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
if ($status ne 'OK') {
record('WARNING');
};
+ } elsif (m/^(Error): (The specified device does not have a Storage Enclosure identified by.*)/) {
+ my $status = $1;
+ my $detail = "$enc: Unidentified Storage Enclosure";
+ push @{$status{$status}}, $detail;
+ record('CRITICAL');
+ } elsif (m/^(Error): (.*)/) {
+ my $status = $1;
+ my $detail = $2;
+ push @{$status{$status}}, $detail;
+ record('CRITICAL');
}
};