summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorndarshan <dnarayan@redhat.com>2014-11-13 14:25:16 +0530
committerSahina Bose <sabose@redhat.com>2014-11-18 02:23:51 -0800
commite78757532500f054acce70eb0b0dc83741f9cf2c (patch)
tree82ef16fa0a9cb64494d7b8f23bf1c9efef7c56bf
parentc7fa43e3dd1aa63d20caac8d6ffd85735614d832 (diff)
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 <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/9116 Reviewed-by: Nishanth Thomas <nishusemail@gmail.com> Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
-rw-r--r--templates/check_brick_usage.php9
1 files changed, 8 insertions, 1 deletions
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