From a103d0c54966059bdcf4c1cd20eaf7ef741938ab Mon Sep 17 00:00:00 2001 From: Timothy Asir Date: Tue, 20 May 2014 16:04:23 +0530 Subject: Add check_brick_usage template into pnp4nagios template path Change-Id: I7e81e22e73dc4cf336ad335f69735d54b9e9714a Signed-off-by: Timothy Asir Reviewed-on: http://review.gluster.org/7807 Tested-by: Timothy Asir Reviewed-by: Ramesh N Reviewed-by: Timothy Asir --- templates/Makefile.am | 1 + templates/check_brick_usage.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/Makefile.am b/templates/Makefile.am index edece53..25ebd19 100644 --- a/templates/Makefile.am +++ b/templates/Makefile.am @@ -6,6 +6,7 @@ pnp4nagiostemplate_DATA = \ check_memory.php \ check_swap_usage.php \ check_vol_utilization.php \ + check_brick_usage.php \ $(NULL) EXTRA_DIST = \ diff --git a/templates/check_brick_usage.php b/templates/check_brick_usage.php index 6097a09..eab2bc4 100644 --- a/templates/check_brick_usage.php +++ b/templates/check_brick_usage.php @@ -27,7 +27,7 @@ foreach ($this->DS as $KEY=>$VAL) { # set graph labels $max_limit = $VAL['MAX']; - $opt[$KEY] = "--vertical-label \"%(Total: $max_limit GB) \" --lower-limit 0 --upper-limit 100 --title \"$name[$KEY]\" "; + $opt[$KEY] = "--vertical-label \"%(Total: $max_limit GB) \" --lower-limit 0 --upper-limit 100 -r --title \"$name[$KEY]\" "; # Graph Definitions $def[$KEY] = rrd::def( "var1", $VAL['RRDFILE'], $VAL['DS'], "AVERAGE" ); -- cgit