Subject: [InfluxData Community] Telegraf input.exe not sending data to influx but --test running successful


Most of the time this ends up being a permission issue.  It isn't exactly the same, but I usually start by running the script as the `telegraf` user:
```
sudo -u telegraf /path/to/the/script
```

Another technique you can use in your script is to write to both stdout and a file:
```diff
  echo "foo_replication,host=`hostname -s`,type=$Type status=$Status"
+ echo "foo_replication,host=`hostname -s`,type=$Type status=$Status" > /tmp/telegraf-debug
```

---