summaryrefslogtreecommitdiffstats
path: root/plugins/check_proc_status.py
diff options
context:
space:
mode:
authorKanagaraj M <kmayilsa@redhat.com>2014-05-07 12:10:09 +0530
committerSahina Bose <sabose@redhat.com>2014-05-07 02:09:24 -0700
commita4f97c15206c4930e6336c7a1fba67a231615486 (patch)
treed7f397aaa82d69b7f7835e2706fea5d2ca018592 /plugins/check_proc_status.py
parent10c9f0bca8afa33810cc30873efeb1f82d3bea4e (diff)
glusterpmd: fix brick service name
changed from "Brick Status - <dir>" to "Brick - <dir>" Change-Id: If71b54e7b5fad50d849fb90d20caec6a59353a6f Signed-off-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-on: http://review.gluster.org/7690 Reviewed-by: Sahina Bose <sabose@redhat.com>
Diffstat (limited to 'plugins/check_proc_status.py')
-rwxr-xr-xplugins/check_proc_status.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_proc_status.py b/plugins/check_proc_status.py
index a899d0f..83bde1f 100755
--- a/plugins/check_proc_status.py
+++ b/plugins/check_proc_status.py
@@ -48,7 +48,7 @@ _checkCtdbCmd = [_checkProc.cmd, "-c", "1:", "-C", "ctdbd"]
_nfsService = "NFS"
_shdService = "Self-Heal"
_smbService = "CIFS"
-_brickService = "Brick - "
+_brickService = "Brick - %s"
_glusterdService = "Gluster Management"
_quotadService = "Quota"
_ctdbdService = "CTDB"
@@ -67,7 +67,7 @@ def getBrickStatus(volInfo):
if brick.get('hostUuid') != hostUuid:
continue
brickPath = brick['name'].split(':')[1]
- brickService = "Brick Status - %s" % brickPath
+ brickService = _brickService % brickPath
pidFile = brick['name'].replace(
":/", "-").replace("/", "-") + ".pid"
try: