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

n0ts

Reviews(2)
byn0ts, December 4, 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 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)
byn0ts, July 21, 2011
Check memory and swap usage on Windows or Linux Server using SNMP queries
This plugins is very useful.
I support procotol version.
https://gist.github.com/1097533

Thanks.