From 5c7a2558334714e55f59ad8c75debe303c420ba4 Mon Sep 17 00:00:00 2001 From: Sahina Bose Date: Thu, 8 May 2014 12:34:55 +0530 Subject: nagios-plugins: Fixed multiline output in geo-rep status Fixed the multiline output issue in geo-rep status plugin. The extra details are now separated by a line-break so that it does not get displayed in the services summary page Change-Id: I2ff6e099adf4969cc79eec8a80abcb7a4ae88ae4 Signed-off-by: Sahina Bose Reviewed-on: http://review.gluster.org/7707 --- plugins/check_volume_status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/check_volume_status.py b/plugins/check_volume_status.py index 2a1e051..04f3738 100755 --- a/plugins/check_volume_status.py +++ b/plugins/check_volume_status.py @@ -116,10 +116,10 @@ def getVolumeGeoRepStatus(args): if (volume[args.volume]['status'] == glustercli.GeoRepStatus.PARTIAL_FAULTY): exitstatus = utils.PluginStatusCode.WARNING - message = "Partially faulty - %s" % volume[args.volume]['detail'] + message = "Partially faulty\n %s" % volume[args.volume]['detail'] elif volume[args.volume]['status'] == glustercli.GeoRepStatus.FAULTY: exitstatus = utils.PluginStatusCode.CRITICAL - message = "Faulty - %s" % volume[args.volume]['detail'] + message = "Faulty\n %s" % volume[args.volume]['detail'] elif (volume[args.volume]['status'] == glustercli.GeoRepStatus.NOT_STARTED): exitstatus = utils.PluginStatusCode.WARNING -- cgit