diff options
author | Bryan Sullivan <bryan.sullivan@att.com> | 2017-11-21 18:55:32 -0800 |
---|---|---|
committer | Bryan Sullivan <bryan.sullivan@att.com> | 2017-11-21 18:55:32 -0800 |
commit | a30888b3403bfd22358c30d9b706e73545fa5031 (patch) | |
tree | c09ef93ad1d3ccb99d8464dc642cf72fe2abe1a7 /tools/ves-setup.sh | |
parent | 883a32d4f235f03938872a6ce421e17b728f068d (diff) |
Add more collectd data to influx/grafana
JIRA: VES-2
Disable uuid for "node" mode
Change-Id: I055db4f52eee7a61438a4e7e63740b42dc3f1777
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tools/ves-setup.sh')
-rw-r--r-- | tools/ves-setup.sh | 6 |
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 |