Update the collectd commit id used to build the collectd package. This new id
includes all the upstreamed plugins for barometer. Add the configuration for
the hugepages plugin.
Change-Id: Ibb639cfacbad5c69220a9d379836b7126021d0b6
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
Reviewed-by: Ruijing Gou <ruijing.guo@intel.com>
cd ${BUILD_HOME}
rm -rf collectd
-git clone https://github.com/collectd/collectd; cd collectd; git checkout 786a6be461cf58ef2b8c57974cad2a79ba2ee82c
+git clone https://github.com/collectd/collectd; cd collectd; git checkout 76fb10bf790e35dd6caca13c4bb5d0f86c517370
git clone https://github.com/collectd/pkg-debian; cd pkg-debian; git checkout 549d3caba74210ad762fe8c556801d9c11ab9876
patch -p1 < /fuel-plugin/enable_pqos.diff
cp -r debian ..
</Plugin>
EOF
+cat << EOF > /etc/collectd/collectd.conf.d/hugepages.conf
+LoadPlugin hugepages
+
+<Plugin hugepages>
+ ReportPerNodeHP true
+ ReportRootHP true
+ ValuesPages true
+ ValuesBytes false
+ ValuesPercentage false
+</Plugin>
+EOF
+
service collectd restart