summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorndarshan <dnarayan@redhat.com>2014-11-26 17:18:00 +0530
committerSahina Bose <sabose@redhat.com>2014-11-26 21:39:26 -0800
commit5f7c36599eab262a3dd3f5c42eeb89e53abadac8 (patch)
tree8bad7ea25c8e8d9ef52936b0ba5673ab808b6e75
parentbc2106ee7ea6cd9f243c40c9d15596f555c45505 (diff)
plugin::check_disk_and_inode: fix backward compatibility in perfdata
changed the label for brick utilization perfdata from "Virtual" to the brick mount path. This is done to retain backward compatibility. Change-Id: I45c5058d254ecb4ee23a28e093bed3ebf378db2f Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1143995 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/9202 Reviewed-by: Bala FA <barumuga@redhat.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
-rwxr-xr-xplugins/check_disk_and_inode.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_disk_and_inode.py b/plugins/check_disk_and_inode.py
index 813fbc5..d1fc3f5 100755
--- a/plugins/check_disk_and_inode.py
+++ b/plugins/check_disk_and_inode.py
@@ -290,7 +290,8 @@ def showDiskUsage(warn, crit, mountPaths, toListInode, usage=False,
inode['size'])
elif disk['path']:
if thinPool and thinLv['thinLv']:
- data = "Virtual=%.2f%%;%s;%s;0;%s" % (
+ data = "%s=%.2f%%;%s;%s;0;%s" % (
+ disk['path'],
disk['usePcent'],
warn,
crit,