From 3318a48195e829e1d0fe996d2eb614a65716accf Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 12 Oct 2017 16:02:28 +0200 Subject: [PATCH] Correctly handle Partially Degraded state which can happen with multi level RAID arrays, like RAID 60 --- zabbix_scripts/check_raid_megaraid_sudo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix_scripts/check_raid_megaraid_sudo b/zabbix_scripts/check_raid_megaraid_sudo index 09afb35..78dc73b 100755 --- a/zabbix_scripts/check_raid_megaraid_sudo +++ b/zabbix_scripts/check_raid_megaraid_sudo @@ -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';