summaryrefslogtreecommitdiffstats
path: root/tools/ves-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ves-setup.sh')
-rw-r--r--tools/ves-setup.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/ves-setup.sh b/tools/ves-setup.sh
index 6e20bfd..7b6bddb 100644
--- a/tools/ves-setup.sh
+++ b/tools/ves-setup.sh
@@ -242,6 +242,7 @@ LoadPlugin csv
StoreRates false
</Plugin>
+# TODO: complete the virt plugin install before enabling
#LoadPlugin virt
#<Plugin virt>
# Connection "qemu:///system"
@@ -275,7 +276,8 @@ LoadPlugin interface
LoadPlugin memory
LoadPlugin load
LoadPlugin disk
-LoadPlugin uuid
+# TODO: how to set this option only to apply to VMs (not nodes)
+#LoadPlugin uuid
LoadPlugin write_kafka
<Plugin write_kafka>
@@ -337,6 +339,8 @@ LoadPlugin match_regex
EOF
fi
+# sudo sed -i -- "s/#Hostname \"localhost\"/Hostname \"$HOSTNAME\"/" /opt/collectd/etc/collectd.conf
+
if [[ $(grep -c $ves_hostname /etc/hosts) -eq 0 ]]; then
log "add to /etc/hosts: $ves_kafka_host $ves_hostname"
echo "$ves_kafka_host $ves_hostname" | sudo tee -a /etc/hosts