From 9379f10239710c950c8ce319a18022215a892a66 Mon Sep 17 00:00:00 2001 From: Nishanth Thomas Date: Fri, 9 May 2014 14:01:37 +0530 Subject: nagios-server-addons : Added a php template for volume utilization Volume Utilization plugin didn't have a php template written and hence the graph was not getting displayed properly Change-Id: I6726a6de5370d271467be03e9e8500421cf66e39 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1095427 Signed-off-by: Nishanth Thomas Reviewed-on: http://review.gluster.org/7724 Tested-by: Nishanth Thomas Reviewed-by: Sahina Bose --- nagios-server-addons.spec.in | 1 + templates/Makefile.am | 1 + templates/check_vol_utilization.php | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 templates/check_vol_utilization.php diff --git a/nagios-server-addons.spec.in b/nagios-server-addons.spec.in index 997c07f..7eb153c 100644 --- a/nagios-server-addons.spec.in +++ b/nagios-server-addons.spec.in @@ -200,6 +200,7 @@ fi %{_datadir}/nagios/html/pnp4nagios/templates.dist/check_interfaces.php %{_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 %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 ccd3006..edece53 100644 --- a/templates/Makefile.am +++ b/templates/Makefile.am @@ -5,6 +5,7 @@ pnp4nagiostemplate_DATA = \ check_interfaces.php \ check_memory.php \ check_swap_usage.php \ + check_vol_utilization.php \ $(NULL) EXTRA_DIST = \ diff --git a/templates/check_vol_utilization.php b/templates/check_vol_utilization.php new file mode 100644 index 0000000..d5f5e39 --- /dev/null +++ b/templates/check_vol_utilization.php @@ -0,0 +1,37 @@ + -- cgit