RAID Controllers

Adaptec RAID Check by Anchor Systems : check-aacraid.py patch

Description:

check-aacraid.py does not handle “ZMM Optimal” correctly
verbose mode added

Current Version

Last Release Date

July 5, 2010

Compatible With

  • Nagios 3.x

Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Notes
Reviews (1) Add a Review
Patch for c_defunct_re regex pattern
by n0ts, December 31, 2011
check-aacraid.py plugin is very useful.
But here is the patch for c_defunct_re regex pattern.

Thanks!

--- check-aacraid.py-org 2011-12-05 04:05:38.000000000 +0900
+++ check-aacraid.py 2011-12-05 15:53:10.000000000 +0900
@@ -31,6 +31,7 @@
# v0.2 - checks logical volume status & wipes log
# v0.3 - strips trailing "," & tells you the logical volume with
# the failure
+# v0.4 - fixed c_degraded_re regex pattern


import sys, os, re, string
@@ -38,7 +39,7 @@
c_status_re = re.compile('^s*Controller Statuss*:s*(.*)$')
l_status_re = re.compile('^s*Status of logical devices*:s*(.*)$')
l_device_re = re.compile('^Logical device number ([0-9]+).*$')
-c_defunct_re = re.compile('^s*Defunct disk drive counts:s*([0-9]+).*$')
+c_defunct_re = re.compile('^s*Defunct disk drive counts*:s*([0-9]+).*$')
c_degraded_re = re.compile('^s*Logical devices/Failed/Degradeds*:s*([0-9]+)/([0-9]+)/([0-9]+).*$')
b_status_re = re.compile('^s*Statuss*:s*(.*)$')
b_temp_re = re.compile('^s*Over temperatures*:s*(.*)$')
@@ -85,7 +86,7 @@
if verbose > 0 :
print "cdefunct > 0"
check_status = 2
- result += "Defunct drives " + cdefunct_group(1) + ","
+ result += "Defunct drives " + cdefunct.group(1) + ","
continue

cdegraded = c_degraded_re.match(line)
Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3.3 (3)
Favorites
0
Views
97,843