From c910f8e3c94c49e22afd49bf8fb367ca37892b73 Mon Sep 17 00:00:00 2001 From: Timothy Asir Date: Tue, 6 May 2014 16:26:09 +0530 Subject: Add total usage into disk usage graph vertical label Change-Id: I2f3b18c730ffd3ab142763433e0c75f9214eef1e Signed-off-by: Timothy Asir Reviewed-on: http://review.gluster.org/7685 Tested-by: Timothy Asir Reviewed-by: Timothy Asir --- templates/check_disk_and_inode.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/check_disk_and_inode.php b/templates/check_disk_and_inode.php index 2dd253f..6146a6a 100644 --- a/templates/check_disk_and_inode.php +++ b/templates/check_disk_and_inode.php @@ -29,7 +29,8 @@ foreach ($this->DS as $KEY=>$VAL) { $name[$KEY] = "Disk Utilization for mount: " . $VAL['NAME']; # set graph labels - $opt[$KEY] = "--vertical-label \"% Usage\" --lower-limit 0 --upper-limit 100 --title \"$name[$KEY]\" "; + $max_limit = $VAL['MAX']; + $opt[$KEY] = "--vertical-label \"%(Total: $max_limit GB) \" --lower-limit 0 --upper-limit 100 --title \"$name[$KEY]\" "; # Graph Definitions $def[$KEY] = rrd::def( "var1", $VAL['RRDFILE'], $VAL['DS'], "AVERAGE" ); -- cgit