From 5f7c36599eab262a3dd3f5c42eeb89e53abadac8 Mon Sep 17 00:00:00 2001 From: ndarshan Date: Wed, 26 Nov 2014 17:18:00 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/9202 Reviewed-by: Bala FA Reviewed-by: Kanagaraj M Reviewed-by: Sahina Bose --- plugins/check_disk_and_inode.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') 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, -- cgit