summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fuel-plugin/deployment_scripts/install.sh18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/fuel-plugin/deployment_scripts/install.sh b/src/fuel-plugin/deployment_scripts/install.sh
index 08efca81..98605a19 100755
--- a/src/fuel-plugin/deployment_scripts/install.sh
+++ b/src/fuel-plugin/deployment_scripts/install.sh
@@ -30,8 +30,6 @@ modprobe msr
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
@@ -100,7 +98,8 @@ fi
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>
@@ -110,4 +109,17 @@ cat << EOF > /etc/collectd/collectd.conf.d/mcelog.conf
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