Faidon has submitted this change and it was merged.
Change subject: Make check-raid.py compatible with newer MegaCli
......................................................................
Make check-raid.py compatible with newer MegaCli
Port this from Jeff's work from fundraising.
Change-Id: I289420a5c882d266eee92b5bb1ef1bc506e8ddda
---
M files/icinga/check-raid.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Faidon: Verified; Looks good to me, approved
diff --git a/files/icinga/check-raid.py b/files/icinga/check-raid.py
index 116ac8f..62260c8 100755
--- a/files/icinga/check-raid.py
+++ b/files/icinga/check-raid.py
@@ -215,8 +215,8 @@
print 'WARNING: error executing MegaCli64: %s' % str(error)
return 1
- stateRegex = re.compile('^State:\s*([^\n]*)')
- drivesRegex = re.compile('^Number Of Drives( per span)?:\s*([^\n]*)')
+ stateRegex = re.compile('^State\s*:\s*([^\n]*)')
+ drivesRegex = re.compile('^Number Of Drives( per span)?\s*:\s*([^\n]*)')
state = None
numDrives = None
for line in proc.stdout:
--
To view, visit https://gerrit.wikimedia.org/r/65281
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I289420a5c882d266eee92b5bb1ef1bc506e8ddda
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon <[email protected]>
Gerrit-Reviewer: Faidon <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits