summaryrefslogtreecommitdiffstats
path: root/build/ves-collector/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/ves-collector/start.sh')
-rw-r--r--build/ves-collector/start.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/build/ves-collector/start.sh b/build/ves-collector/start.sh
index 1c41778..be30c9a 100644
--- a/build/ves-collector/start.sh
+++ b/build/ves-collector/start.sh
@@ -34,7 +34,15 @@ sed -i -- "s~vel_topic_name = example_vnf~vel_topic_name = $ves_topic~g" \
sed -i -- "/vel_topic_name = /a influxdb = $ves_influxdb_host" \
evel-test-collector/config/collector.conf
-python /opt/ves/evel-test-collector/code/collector/monitor.py \
- --config /opt/ves/evel-test-collector/config/collector.conf \
- --influxdb $ves_influxdb_host \
- --section default > /opt/ves/monitor.log 2>&1
+if [[ "$ves_loglevel" != "" ]]; then
+ python /opt/ves/evel-test-collector/code/collector/monitor.py \
+ --config /opt/ves/evel-test-collector/config/collector.conf \
+ --influxdb $ves_influxdb_host \
+ --section default > /opt/ves/monitor.log 2>&1
+else
+ python /opt/ves/evel-test-collector/code/collector/monitor.py \
+ --config /opt/ves/evel-test-collector/config/collector.conf \
+ --influxdb $ves_influxdb_host \
+ --section default
+fi
+