summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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" );