Faidon Liambotis has uploaded a new change for review.
https://gerrit.wikimedia.org/r/87564
Change subject: check-raid.py: switch to new megacli binary name
......................................................................
check-raid.py: switch to new megacli binary name
The new megacli package uses /usr/sbin/megacli instead of
/usr/bin/MegaCli64. Adjust the nagios check.
Change-Id: Ic6b79c323cac19a2e185581c6edb5e44674a5748
---
M modules/base/files/monitoring/check-raid.py
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/64/87564/1
diff --git a/modules/base/files/monitoring/check-raid.py
b/modules/base/files/monitoring/check-raid.py
index 3935a8b..7a5e1ea 100644
--- a/modules/base/files/monitoring/check-raid.py
+++ b/modules/base/files/monitoring/check-raid.py
@@ -224,12 +224,12 @@
def checkMegaSas():
try:
- proc = subprocess.Popen(['/usr/bin/MegaCli64',
+ proc = subprocess.Popen(['/usr/sbin/megacli',
'-LDInfo', '-LALL', '-aALL'],
stdout=subprocess.PIPE)
except:
error = sys.exc_info()[1]
- print 'WARNING: error executing MegaCli64: %s' % str(error)
+ print 'WARNING: error executing megacli: %s' % str(error)
return 1
stateRegex = re.compile('^State\s*:\s*([^\n]*)')
@@ -267,7 +267,7 @@
ret = proc.wait()
if ret != 0:
- print 'WARNING: MegaCli64 returned exit status %d' % (ret)
+ print 'WARNING: megacli returned exit status %d' % (ret)
return 1
if lines == 0:
@@ -275,7 +275,7 @@
return 1
if not match:
- print 'WARNING: Parse error processing MegaCli64 output'
+ print 'WARNING: Parse error processing megacli output'
return 1
if numLD == 0:
--
To view, visit https://gerrit.wikimedia.org/r/87564
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic6b79c323cac19a2e185581c6edb5e44674a5748
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits