path: root/
diff options
authorndarshan <>2014-11-21 17:02:40 +0530
committerSahina Bose <>2014-11-26 22:43:33 -0800
commitde2d81b459e8674e49d4993b15b5d383f72c301e (patch)
treeaec68ad2c40c0faca5bd10eb9a883c0b7dab6291 /
parentbc31d1f4f278dea2f0c0892a412734302c6bf308 (diff)
brick plugin: set rrd configuration to multiple.
By default perfdata is created in single rrd file which causes failure of fetching DS in upgrade scenario. Because earlier brick utilization had only one DS. Now with thin LV monitoring included in brick utilization, It will be having two DS. The graph templates wont be able to read them in single rrd file. So in case of upgrade we run the script rrd_convert as a pre step to migrate the old data to new rrd files.and this patch also sets pnp4nagios rrd configuration to multiple rrd file for each DS. Change-Id: Iadb50250b2e93d73b61e25be90a0770dae0780f3 Bug-Url: Signed-off-by: ndarshan <> Reviewed-on: Reviewed-by: Sahina Bose <>
Diffstat (limited to '')
1 files changed, 9 insertions, 0 deletions
diff --git a/ b/
index d62417a..4b5374a 100644
--- a/
+++ b/
@@ -122,6 +122,14 @@ make install DESTDIR=%{buildroot}
rm -rf %{buildroot}
+if [ $1 -gt 1 ] ; then
+ if ! grep -q "RRD_STORAGE_TYPE = MULTIPLE" %{_sysconfdir}/pnp4nagios/check_commands/check_brick_usage.cfg ; then
+ echo "y" | su -c '%{_libexecdir}/pnp4nagios/ --cfg_dir=%{_sysconfdir}/pnp4nagios --check_command=check_brick_usage' -s '/bin/bash' nagios 1> /dev/null
+ fi
sed -i '/etc\/nagios\/objects\/localhost.cfg/d' $NagiosCFGFile
@@ -240,6 +248,7 @@ fi
%config(noreplace) %attr(-, root, nagios) %{_sysconfdir}/nagios/gluster/snmpmanagers.conf
%config(noreplace) %{_sysconfdir}/nagios/gluster/*