Home Directory Plugins Hardware Storage Systems RAID Controllers Adaptec RAID Check by Anchor Systems : check-aacraid.py patch

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

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

Rating
3 votes
Favoured:
0
Compatible With
  • Nagios 3.x
Hits
97890
Files:
FileDescription
check-aacraid.pyfull version
check-aacraid.py.diff.gzpatch
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!
check-aacraid.py does not handle "ZMM Optimal" correctly
verbose mode added
Reviews (1)
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 Status\s*:\s*(.*)$')
l_status_re = re.compile('^\s*Status of logical device\s*:\s*(.*)$')
l_device_re = re.compile('^Logical device number ([0-9]+).*$')
-c_defunct_re = re.compile('^\s*Defunct disk drive count\s:\s*([0-9]+).*$')
+c_defunct_re = re.compile('^\s*Defunct disk drive count\s*:\s*([0-9]+).*$')
c_degraded_re = re.compile('^\s*Logical devices/Failed/Degraded\s*:\s*([0-9]+)/([0-9]+)/([0-9]+).*$')
b_status_re = re.compile('^\s*Status\s*:\s*(.*)$')
b_temp_re = re.compile('^\s*Over temperature\s*:\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)