Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
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