Alexandros Kosiaris has submitted this change and it was merged.

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(-)

Approvals:
  Alexandros Kosiaris: Verified; Looks good to me, approved



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: merged
Gerrit-Change-Id: Ie51b0431b22392985e7d5395b6332b606ea6dec9
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <[email protected]>
Gerrit-Reviewer: Alexandros Kosiaris <[email protected]>
Gerrit-Reviewer: Matanya <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to