Random Project

Problems with deleted Logical Drives

When having Logical Drive 0,1,3 instead of 0,1,2 the plugin throws perl errors. This patch fixes this:

diff –git a/check_megaraid_sas b/check_megaraid_sas
index b9c2a32..b2bc32b 100644
— a/check_megaraid_sas
+++ b/check_megaraid_sas
@@ -219,8 +219,20 @@ ADAPTER: for ( my $adp = 0; $adp while () {
+ if ( m/^Virtual Drive:.d..Target Id: (d+)./i ) {
+ push(@ldlist, $1);
+ }
+ }
+ close LDGETLIST;
+

– LDISK: for ( my $ld = 0; $ld apostopt |”)
|| exitreport(‘UNKNOWN’, “error: Could not execute $megacli -LdInfo -L$ld -a$adp $megapostopt “);

2.1.4