Alexandros Kosiaris has uploaded a new change for review.
https://gerrit.wikimedia.org/r/218327
Change subject: check-raid: Print an OK if about to exit successfully
......................................................................
check-raid: Print an OK if about to exit successfully
NRPE: Unable to read output is not the most helpful message. Print a
single OK
Change-Id: Ie51b0431b22392985e7d5395b6332b606ea6dec9
---
M modules/base/files/monitoring/check-raid.py
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/27/218327/1
diff --git a/modules/base/files/monitoring/check-raid.py
b/modules/base/files/monitoring/check-raid.py
index cc3e910..e258f52 100644
--- a/modules/base/files/monitoring/check-raid.py
+++ b/modules/base/files/monitoring/check-raid.py
@@ -48,6 +48,8 @@
print 'WARNING: check-raid.py encountered exception: ' + str(error)
status = 1
+ if status == 0:
+ print 'OK'
sys.exit(status)
--
To view, visit https://gerrit.wikimedia.org/r/218327
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie51b0431b22392985e7d5395b6332b606ea6dec9
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits