From 553fd98e7ae1c6a0c01afeabcdcdd9080c5ac64c Mon Sep 17 00:00:00 2001 From: Timothy Asir Date: Wed, 21 May 2014 18:18:10 +0530 Subject: brickstat: fix brick status message to have brick details. Add brick details to the status message when the brick status is unknown. Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1097231 Change-Id: I4692f7fb99696f64da9d48139da6e2763899c02d Signed-off-by: Timothy Asir Reviewed-on: http://review.gluster.org/7828 Reviewed-by: Shubhendu Tripathi Reviewed-by: Ramesh N Tested-by: Timothy Asir Reviewed-by: Kanagaraj M --- plugins/check_gluster_proc_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check_gluster_proc_status.py b/plugins/check_gluster_proc_status.py index da719d4..6995d20 100755 --- a/plugins/check_gluster_proc_status.py +++ b/plugins/check_gluster_proc_status.py @@ -84,7 +84,7 @@ if __name__ == '__main__': status = utils.PluginStatusCode.CRITICAL msg = "Brick - %s not found" % args.brickPath elif args.type != _GLUSTERD: - msg = "UNKNOWN: Could not determine %s status " % args.type + msg = "UNKNOWN: Brick - %s status could not be determined" % args.brickPath status = utils.PluginStatusCode.UNKNOWN print msg exit(status) -- cgit