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

nickatnite

Reviews(1)
bynickatnite, October 18, 2012
This is the patch I used to get it to properly read active and clean states.

--- check_md_raid.orig
+++ check_md_raid
@@ -110,7 +110,7 @@ def test_raid(verbosity):
if "State :" in line:
state = line.split(":")[-1][1:-1]
re_clean = re.compile('^clean(, no-errors)?$')
- if not re_clean.match(state) and state != "active":
+ if not re_clean.match(state) and state != "active" and state != "active " and state != "clean" and state != "clean ":
arrays_not_ok += 1
raidlevel = detailed_output[3].split()[-1]
shortname = array.split("/")[-1].upper()