From e78757532500f054acce70eb0b0dc83741f9cf2c Mon Sep 17 00:00:00 2001 From: ndarshan Date: Thu, 13 Nov 2014 14:25:16 +0530 Subject: nagios-server-addons: Modified brick utilization graph template. Modified brick utilization graph template to give an additional graph to show the actual brick utilization when the brick is made up of thin lv. Change-Id: I0ecc2de9d0b6ca72b7a4ed87c342f242fb035598 Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1143995 Signed-off-by: ndarshan Reviewed-on: http://review.gluster.org/9116 Reviewed-by: Nishanth Thomas Reviewed-by: Ramesh N Reviewed-by: Sahina Bose --- templates/check_brick_usage.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/check_brick_usage.php b/templates/check_brick_usage.php index eab2bc4..5f00b87 100644 --- a/templates/check_brick_usage.php +++ b/templates/check_brick_usage.php @@ -22,7 +22,14 @@ # set graph labels foreach ($this->DS as $KEY=>$VAL) { # $VAL['NAME'] = str_replace("_","/",$VAL['NAME']); - $ds_name[$KEY] = "Brick Utilization"; + $ds_name[$KEY] = "Brick Utilization "; + $graph_type = $VAL['LABEL']; + if ($graph_type == "Virtual" ) { + $ds_name[$KEY] .= "(virtual)"; + } + if ($graph_type == "Thin-pool" ) { + $ds_name[$KEY] .= "(Thin-pool)"; + } $name[$KEY] = "Brick Path: " . $NAGIOS__SERVICEBRICK_DIR; # set graph labels -- cgit