From 1fe7a5d03799ba043c99e7a3bdcac5579ed5174a Mon Sep 17 00:00:00 2001 From: Ramesh Nachimuthu Date: Fri, 20 Jun 2014 11:40:19 +0530 Subject: nagios-addons: return correct error mesage when glusterd is stopped Fixing issue in error message returned for gluster related process when 'glusterd' is stopped. Change-Id: I8dd4595c45357ce7192db72ff3e8f2365e6fbefa Bug-Url: https://bugzilla.redhat.com/1105568 Signed-off-by: Ramesh Nachimuthu Reviewed-on: http://review.gluster.org/8125 Reviewed-by: Humble Devassy Chirammal Reviewed-by: Sahina Bose --- plugins/check_gluster_proc_status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/check_gluster_proc_status.py b/plugins/check_gluster_proc_status.py index f17ded4..5041ded 100755 --- a/plugins/check_gluster_proc_status.py +++ b/plugins/check_gluster_proc_status.py @@ -84,8 +84,8 @@ if __name__ == '__main__': status = utils.PluginStatusCode.CRITICAL msg = "Brick - %s not found" % args.brickPath elif args.type != _GLUSTERD: - msg = "UNKNOWN: Brick - %s status could not be determined" % \ - (args.brickPath) + msg = "UNKNOWN: Status could not be determined as " \ + "glusterd is not running" status = utils.PluginStatusCode.UNKNOWN print msg exit(status) -- cgit