From 223c6d85f78c3be32d3a4b0647b3c19e55cf3355 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Mon, 19 Nov 2018 16:29:07 -0500 Subject: [PATCH] Common Module - Telegraf turn off hdd temp monitoring --- salt/common/init.sls | 3 +++ salt/common/telegraf/etc/telegraf.conf | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/salt/common/init.sls b/salt/common/init.sls index baf60a939..17a35f29c 100644 --- a/salt/common/init.sls +++ b/salt/common/init.sls @@ -149,6 +149,7 @@ so-telegraf: - /etc/pki/ca.crt:/etc/telegraf/ca.crt:ro - /etc/pki/influxdb.crt:/etc/telegraf/telegraf.crt:ro - /etc/pki/influxdb.key:/etc/telegraf/telegraf.key:ro + - /opt/so/log/telegraf/:/var/log/telegraf/:rw # If its a master or eval lets install the back end for now {% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %} @@ -176,6 +177,8 @@ so-influxdb: docker_container.running: - image: soshybridhunter/so-influxdb:HH1.0.4 - hostname: influxdb + - environment: + - INFLUXDB_HTTP_LOG_ENABLED=false - binds: - /opt/so/conf/influxdb/etc/influxdb.conf:/etc/influxdb/influxdb.conf:ro - /nsm/influxdb:/var/lib/influxdb:rw diff --git a/salt/common/telegraf/etc/telegraf.conf b/salt/common/telegraf/etc/telegraf.conf index 01959148e..abbb59cac 100644 --- a/salt/common/telegraf/etc/telegraf.conf +++ b/salt/common/telegraf/etc/telegraf.conf @@ -70,10 +70,10 @@ ## Run telegraf in quiet mode (error log messages only). quiet = false ## Specify the log file name. The empty string means to log to stderr. - logfile = "" + logfile = "/var/log/telegraf/telegraf.log" ## Override default hostname, if empty use os.Hostname() - hostname = "" + hostname = "{{ grains.host }}" ## If set to true, do no set the "host" tag in the telegraf agent. omit_hostname = false