Correctly handle Partially Degraded state

which can happen with multi level RAID arrays, like RAID 60
This commit is contained in:
Daniel Berteaud 2017-10-12 16:02:28 +02:00
parent 2903b025af
commit 3318a48195

View File

@ -140,7 +140,7 @@ ADAPTER: for ( my $adp = 0; $adp < $adapters; $adp++ ) {
$size = sprintf( "%.0f", ($size / 1024) );
$unit= 'GB';
}
} elsif ( m/^State\s*:\s*(\w+)/ ) {
} elsif ( m/^State\s*:\s*(\w+(\s\w+)?)/ ) {
$state = $1;
if ( $state ne 'Optimal' ) {
$status = 'CRITICAL';