From b25fc3d0aeaf23a5245f9531b5a8ad78ae91a870 Mon Sep 17 00:00:00 2001 From: Timothy Asir Date: Wed, 21 May 2014 18:05:11 +0530 Subject: brickstat: fix brick status information Status Information for brick status service will have a proper message like "ok: brick is up" when the brick is up. Bug-url: https://bugzilla.redhat.com/show_bug.cgi?id=1090864 Change-Id: Id03c70d0e4d3b79a7cfc12552047f6905ec74fc9 Signed-off-by: Timothy Asir Reviewed-on: http://review.gluster.org/7827 Reviewed-by: Shubhendu Tripathi Tested-by: Timothy Asir --- plugins/check_proc_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check_proc_util.py b/plugins/check_proc_util.py index d3189b1..568f259 100755 --- a/plugins/check_proc_util.py +++ b/plugins/check_proc_util.py @@ -76,7 +76,7 @@ def getBrickStatus(volumeName, brickName): msg = "UNKNOWN: Brick %s: %s" % (brickPath, str(e)) finally: if status == utils.PluginStatusCode.OK: - msg = "OK: Brick %s" % brickPath + msg = "OK: Brick %s is up" % brickPath elif status == utils.PluginStatusCode.CRITICAL: msg = "CRITICAL: Brick %s is down" % brickPath return status, msg -- cgit