From 3bd2b2d5021731fc7cf82ea1fb9ade757f34cf66 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Fri, 9 Nov 2018 12:18:06 +0100 Subject: [PATCH] fix readme + add security tip --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b19ac25..849bbca 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,19 @@ The configuration file needs to contain the fields `url` and `password` as valid Use this script call within InfluxData's Telegraf e.g.: -``` +```toml [[inputs.exec]] - commands = ["python3 /opt/rspamd-influxdb/rspamd-influxdb.py http://localhost:11334/ superSecretPassword"] + commands = ["python3 /opt/rspamd-influxdb/rspamd-influxdb.py --config /etc/telegraf/tools-conf/rspamd-fetch.json"] timeout = "5s" data_format = "influx" ``` +**Security Tip** +```sh +chown root:telegraf /etc/telegraf/tools-conf/rspamd-fetch.json +chmod 640 /etc/telegraf/tools-conf/rspamd-fetch.json +``` + + ## Grafana example ![Grafana Example](https://raw.githubusercontent.com/thannaske/rspamd-influxdb/master/grafana-example.png)