Correctly handle Partially Degraded state

which can happen with multi level RAID arrays, like RAID 60
tags/zabbix-agent-addons-0.2.20-1 0.2.19_1_el5
Daniel Berteaud 7 years ago
parent 2903b025af
commit 3318a48195
  1. 2
      zabbix_scripts/check_raid_megaraid_sudo

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

Loading…
Cancel
Save