Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
check-aacraid.py does not handle “ZMM Optimal” correctly verbose mode added
Current Version
Last Release Date
July 5, 2010
Owner
LinuxHaus Stuttgart
Compatible With
full version
patch
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)
You must be logged in to submit a review.
To:
From: