Raspberry Pi telegraf to other Linux Server with influxdb

Hello everybody,

I have 2 Raspberrys:
One with telegraph and another with InfluxDB and Grafana

I want to have the Raspberry captured with telegraph system data and send it to the InfluxDB on the other server.

Currently I receive the following error message:

Oct 26 15:34:00 nextcloudpi telegraf[7528]: 2019-10-26T14:34:00Z W! [outputs.influxdb] when writing to [http//10.168.7.3:8086]: database “nextcloud_db” creation failed: Post http//10.168.7.3:8086/query: dial tcp 10.168.7.3:8086: connect: connection refused
Oct 26 15:34:00 nextcloudpi telegraf[7528]: 2019-10-26T14:34:00Z E! [outputs.influxdb] when writing to [http//10.168.7.3:8086]: Post http//10.168.7.3:8086/write?db=nextcloud_db: dial tcp 10.168.7.3:8086: connect: connection refused
Oct 26 15:34:00 nextcloudpi telegraf[7528]: 2019-10-26T14:34:00Z E! [agent] Error writing to outputs.influxdb: could not write any address

telegraf.conf:

Output Plugin InfluxDB
[[outputs.influxdb]]
database = “nextcloud_db”
database_tag = “nextcloud_db”
user_agent = “telegraf”
urls = [“http://10.168.7.3:8086”]
username = “telegraf”
password = “xxxxxxxxxx”

On the other instance in influxDB, the user “telegrapf” is set up as Admin and the DB “nextcloud_db”
in the Config i set:

[http]
enabled = true
bind-address = “:8086”
auth-enabled = true

Thanks for help

Daniel

This might sound silly, but make sure the commented out lines are correct. Sometimes folks forget to uncomment the [http] line .

Hi,

i found the error, the ports of the influxdb-Raspberry were not open.