summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSahina Bose <sabose@redhat.com>2014-05-08 12:34:55 +0530
committerSahina Bose <sabose@redhat.com>2014-05-08 02:22:57 -0700
commit5c7a2558334714e55f59ad8c75debe303c420ba4 (patch)
treea7a24686b850be3f46a11c70133955aa6130b5fa /plugins
parente96918e80ce059ed3dbd2099db00eee8c120809f (diff)
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 <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7707
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/check_volume_status.py4
1 files 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