summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Asir <tjeyasin@redhat.com>2014-05-20 16:04:23 +0530
committerTimothy Asir <tim.gluster@gmail.com>2014-05-21 03:59:05 -0700
commita103d0c54966059bdcf4c1cd20eaf7ef741938ab (patch)
tree55f8c5b1e1582abf214807d7b5753c96c941125c
parent77df8ca6c6adc984cbeccec1349829591ff76071 (diff)
Add check_brick_usage template into pnp4nagios template path
Change-Id: I7e81e22e73dc4cf336ad335f69735d54b9e9714a Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7807 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
-rw-r--r--nagios-server-addons.spec.in1
-rw-r--r--templates/Makefile.am1
-rw-r--r--templates/check_brick_usage.php2
3 files changed, 3 insertions, 1 deletions
diff --git a/nagios-server-addons.spec.in b/nagios-server-addons.spec.in
index 6ddce8f..fd07977 100644
--- a/nagios-server-addons.spec.in
+++ b/nagios-server-addons.spec.in
@@ -204,6 +204,7 @@ fi
%{_datadir}/nagios/html/pnp4nagios/templates.dist/check_memory.php
%{_datadir}/nagios/html/pnp4nagios/templates.dist/check_swap_usage.php
%{_datadir}/nagios/html/pnp4nagios/templates.dist/check_vol_utilization.php
+%{_datadir}/nagios/html/pnp4nagios/templates.dist/check_brick_usage.php
%attr(0755, -, -) %{_libdir}/nagios/plugins/gluster/*
%attr(0775, root, nagios) %dir %{_sysconfdir}/nagios/gluster
%attr(-, root, nagios) %{_sysconfdir}/nagios/gluster/snmpmanagers.conf
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" );