summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Asir <tjeyasin@redhat.com>2014-05-28 18:08:32 +0530
committerSahina Bose <sabose@redhat.com>2014-05-29 01:35:53 -0700
commitc3ac21efd3cffc948f35527de415815644e67533 (patch)
tree821e052e2a04bebf9342818fd021065afa55c87b
parent05c2cd7c527d3a7e8b1244db72505314c3e82d3a (diff)
Add performance data to have unit type for brick and disk usage.
Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1081375 Change-Id: I5f3f97275c6a4d8ad3a28c8d7add0a2ed3253283 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7912 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com>
-rwxr-xr-xplugins/check_disk_and_inode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_disk_and_inode.py b/plugins/check_disk_and_inode.py
index 331edf1..b48c19c 100755
--- a/plugins/check_disk_and_inode.py
+++ b/plugins/check_disk_and_inode.py
@@ -150,7 +150,7 @@ def showDiskUsage(warn, crit, mountPaths, toListInode, usage=False,
crit * inode['used'] / 100,
inode['used'])
else:
- data = "%s=%.2f;%s;%s;0;%s" % (
+ data = "%s=%.2f%%;%s;%s;0;%s" % (
disk['path'],
disk['usePcent'],
warn,
@@ -158,7 +158,7 @@ def showDiskUsage(warn, crit, mountPaths, toListInode, usage=False,
disk['size'])
if toListInode:
- data += " %s=%.2f;%s;%s;0;%s" % (
+ data += " %s=%.2f%%;%s;%s;0;%s" % (
inode['path'],
inode['usePcent'],
warn,