Update the barometer Fuel plugin to include OvS plugin configuration.
Change-Id: I59117632e60eb448e429d92c5f1f49bf7d1b5e78
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
apt-get install -y --allow-unauthenticated collectd python-dev libpython2.7 mcelog
-echo $MCELOG_SOCKET | sudo tee -a $MCELOG_CONF;
-
cat << EOF > /etc/collectd/collectd.conf.d/collectd-ceilometer-plugin.conf
<LoadPlugin python>
Globals true
if [ $enable_mcelog = 'true' ]
then
-cat << EOF > /etc/collectd/collectd.conf.d/mcelog.conf
+ echo $MCELOG_SOCKET | sudo tee -a $MCELOG_CONF;
+ cat << EOF > /etc/collectd/collectd.conf.d/mcelog.conf
<LoadPlugin mcelog>
Interval 1
</LoadPlugin>
EOF
fi
+if [ $enable_ovs_events = 'true' ]
+then
+ ovs-vsctl set-manager ptcp:6640
+ cat << EOF > /etc/collectd/collectd.conf.d/ovs.conf
+<LoadPlugin ovs_events>
+ Interval 1
+</LoadPlugin>
+<Plugin "ovs_events">
+ SendNotification true
+</Plugin>
+EOF
+fi
+
service collectd restart