summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRamesh Nachimuthu <rnachimu@redhat.com>2014-04-29 14:19:25 +0530
committerSahina Bose <sabose@redhat.com>2014-04-30 05:42:53 -0700
commit6fa90e73ddeb2a5df1e6ab01837a249274928ff6 (patch)
tree978aa35bf69de0acede3ea4a8f5e853dc8b47c1d /plugins
parentc33ec5936f3ef9fffe9bafc01e08af5a18c46fa2 (diff)
autoconf: Use only brick path in brick service
Change the brick service description to "Brick Status - <brick-path>". Currently it is "Brick Status - <hostaddress>:<brick-path>". Same case for Brick utilization service also. Change-Id: I3924f15e3b8b86826c0019c5ab52bd371a970cf1 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/7597 Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/config_generator.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/config_generator.py b/plugins/config_generator.py
index f76279f..7e36ae0 100644
--- a/plugins/config_generator.py
+++ b/plugins/config_generator.py
@@ -149,8 +149,7 @@ class GlusterNagiosConfManager:
brickService = {}
brickService['use'] = 'brick-service'
brickService['host_name'] = hostName
- serviceDesc = "Brick Utilization - %s:%s" % (hostName,
- brick['brickpath'])
+ serviceDesc = "Brick Utilization - %s" % brick['brickpath']
brickService['service_description'] = serviceDesc
brickService['_BRICK_DIR'] = brick['brickpath']
brickService['_VOL_NAME'] = brick['volumeName']
@@ -161,8 +160,7 @@ class GlusterNagiosConfManager:
brickService = {}
brickService['use'] = 'gluster-brick-passive-service'
brickService['host_name'] = hostName
- serviceDesc = "Brick Status - %s:%s" % (hostName,
- brick['brickpath'])
+ serviceDesc = "Brick Status - %s" % brick['brickpath']
brickService['service_description'] = serviceDesc
brickService['_BRICK_DIR'] = brick['brickpath']
brickService['_VOL_NAME'] = brick['volumeName']