Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

b.laessig

Reviews(1)
byb.laessig, May 25, 2016
1 of 1 people found this review helpful
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