From da82641c100a4e21d00d823a1dfdbc4eb068b1a2 Mon Sep 17 00:00:00 2001 From: "Bala.FA" Date: Fri, 13 Jun 2014 12:52:20 +0530 Subject: interfaces: set rrd configuration to multiple By default perfdata are created in single rrd file which causes failure of fetching DS for newly configured network interfaces. This patch fixes this by setting pnp4nagios rrd configuration to multiple rrd file for each DS of network interfaces. Change-Id: I3e6fa0e4336fb866ceb37a5e3165a515d42bfae6 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1087837 Signed-off-by: Bala.FA Reviewed-on: http://review.gluster.org/8059 Reviewed-by: Sahina Bose Tested-by: Sahina Bose --- nagios-server-addons.spec.in | 1 + templates/Makefile.am | 6 ++++++ templates/check_interfaces.cfg | 1 + 3 files changed, 8 insertions(+) create mode 100644 templates/check_interfaces.cfg diff --git a/nagios-server-addons.spec.in b/nagios-server-addons.spec.in index c0174ab..ea6a6e0 100644 --- a/nagios-server-addons.spec.in +++ b/nagios-server-addons.spec.in @@ -231,6 +231,7 @@ fi %attr(-, root, nagios) %{_sysconfdir}/nagios/gluster/snmpmanagers.conf %{_sysconfdir}/nagios/gluster/* %{_sysconfdir}/sudoers.d/nagios +%{_sysconfdir}/pnp4nagios/check_commands/check_interfaces.cfg /usr/share/snmp/mibs/* %files tests diff --git a/templates/Makefile.am b/templates/Makefile.am index 25ebd19..c54953e 100644 --- a/templates/Makefile.am +++ b/templates/Makefile.am @@ -1,3 +1,8 @@ +pnp4nagioscheckcommanddir = $(sysconfdir)/pnp4nagios/check_commands +pnp4nagioscheckcommand_DATA = \ + check_interfaces.cfg \ + $(NULL) + pnp4nagiostemplatedir = $(datarootdir)/nagios/html/pnp4nagios/templates.dist pnp4nagiostemplate_DATA = \ check_cpu_multicore.php \ @@ -10,5 +15,6 @@ pnp4nagiostemplate_DATA = \ $(NULL) EXTRA_DIST = \ + $(pnp4nagioscheckcommand_DATA) \ $(pnp4nagiostemplate_DATA) \ $(NULL) diff --git a/templates/check_interfaces.cfg b/templates/check_interfaces.cfg new file mode 100644 index 0000000..718dc42 --- /dev/null +++ b/templates/check_interfaces.cfg @@ -0,0 +1 @@ +RRD_STORAGE_TYPE = MULTIPLE -- cgit