# Telegraf plugin problem

**URL:** <https://community.influxdata.com/t/telegraf-plugin-problem/18899>\
**Category:** Telegraf\
**Tags:** influxdb, outputs, docker\
**Created:** [March 15, 2021, 9:58pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899 "2021-03-15T21:58:37Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![1forrest](https://avatars.discourse-cdn.com/v4/letter/1/54ee81/32.png) [@1forrest](https://community.influxdata.com/u/1forrest)\
**Post date:** [March 18, 2021, 1:08pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/21 "2021-03-18T13:08:00Z")

</div>

When the container is installed it is set the same port as the docker. That is why it is not set.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/d/dfa14c3298d28c212c38ad1be1f428d2511a14d4.png)

and I can see only an init port:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/2/2a6d48bf794fec532c2cd661594e7321eb11dc28.png)

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/franky1/32/6666_2.png) [@Franky1](https://community.influxdata.com/u/Franky1)\
**Post date:** [March 18, 2021, 1:33pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/22 "2021-03-18T13:33:09Z")

</div>

I don’t know how this Synology UI handles the docker configurations. I can’t help you there.  
And I also don’t know where and how you got your InfluxDB Docker configuration for Synology.

What I do notice is that your container name is `influxdb1` and not `influxdb`, you could try this in the Telegraf config:

```auto
[[outputs.influxdb_v2]]
  urls = ["http://influxdb1:8086"]

```

---

<div class="post-metadata">

**Author:** ![1forrest](https://avatars.discourse-cdn.com/v4/letter/1/54ee81/32.png) [@1forrest](https://community.influxdata.com/u/1forrest)\
**Post date:** [March 18, 2021, 1:33pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/23 "2021-03-18T13:33:52Z")

</div>

yes, I did it already. Still I have the same problem

---

<div class="post-metadata">

**Author:** ![1forrest](https://avatars.discourse-cdn.com/v4/letter/1/54ee81/32.png) [@1forrest](https://community.influxdata.com/u/1forrest)\
**Post date:** [March 18, 2021, 1:35pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/24 "2021-03-18T13:35:36Z")

</div>

I found the docker-compose on my NAS but when I show with VI it not showing any readable data. So, I struggle to give you the input that you are asking for:(

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/franky1/32/6666_2.png) [@Franky1](https://community.influxdata.com/u/Franky1)\
**Post date:** [March 18, 2021, 3:14pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/25 "2021-03-18T15:14:38Z")

</div>

Unfortunately, I can’t help with the Synology stuff.

> [@1forrest](#):
>
> When the container is installed

How did you _“install”_ the containers?  
Script? `docker-compose.yml` file?  
Manually in the UI? Which configurations were used?  
Please post precise details about this.

> [@1forrest](#):
>
> In the Influxdb UI I created the bucket, telegraf configuration and token.

From which computer can you reach the UI of the InfluxDb in the browser?  
With which URL exactly?

* * *

You can still try to find out more details about the containers with:

```shell
sudo docker container inspect <containerid>

```

---

<div class="post-metadata">

**Author:** ![1forrest](https://avatars.discourse-cdn.com/v4/letter/1/54ee81/32.png) [@1forrest](https://community.influxdata.com/u/1forrest)\
**Post date:** [March 18, 2021, 3:49pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/26 "2021-03-18T15:49:37Z")

</div>

First of all thanks for your efforts trying to help me…

As for the installation I used the Synology docker UI. I could download the image from ([Docker](https://registry.hub.docker.com/_/influxdb/)). Then through UI install. No scripting required. Not too much configuratzion required, you can see the prscreens for the ones that are available to configure

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/4/49221e0725a105abce1e7f3bd825dee1db92547a.png)  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/6/677bce2603b9c035d8d4212fc1cd118f81b520f6.png)  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/2/20b93fc498d512dd8968fbb7f88dc82ccd33f6ec.png)  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/9/996fb47a01c9431d877dcc65f51b6a56c251fb01.png)

---

<div class="post-metadata">

**Author:** ![1forrest](https://avatars.discourse-cdn.com/v4/letter/1/54ee81/32.png) [@1forrest](https://community.influxdata.com/u/1forrest)\
**Post date:** [March 18, 2021, 3:54pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/27 "2021-03-18T15:54:21Z")

</div>

Once the above are done basically the containers is running.  
I use from my Windows PC the link [http://192.168.1.124:8086/](http://192.168.1.124:8086/) to reach Influxdb. The IP is my Synology NAS IP where the docker and the containers are running. Since I can reach the UI through this address I knew that works well. Through the brwoser I created the token, telegraf config, etc.

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/franky1/32/6666_2.png) [@Franky1](https://community.influxdata.com/u/Franky1)\
**Post date:** [March 18, 2021, 4:00pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/28 "2021-03-18T16:00:07Z")

</div>

> [@1forrest](#):
>
> Since I can reach the UI through this address I knew that works well.

That is very strange. Actually, it should not work at all, because the container has no port exposed.  
Unless Synology is doing something under the hood with the internal docker network.

---

<div class="post-metadata">

**Author:** ![1forrest](https://avatars.discourse-cdn.com/v4/letter/1/54ee81/32.png) [@1forrest](https://community.influxdata.com/u/1forrest)\
**Post date:** [March 18, 2021, 4:00pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/29 "2021-03-18T16:00:36Z")

</div>

Influxdb is running and can be accessed however within the container’s terminal the bind address already in use message pops up. I do not know if this counts

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/2/2589ba1afb46eaec0417ac06adab8ad24763d920.png)

---

<div class="post-metadata">

**Author:** ![1forrest](https://avatars.discourse-cdn.com/v4/letter/1/54ee81/32.png) [@1forrest](https://community.influxdata.com/u/1forrest)\
**Post date:** [March 18, 2021, 4:02pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/30 "2021-03-18T16:02:25Z")

</div>

And I think Synology does. Since during the installation of the Influxdb container I select to use the same host as the docker. I assume that is why no port is assigned but use the docker

---

<div class="post-metadata">

**Author:** ![1forrest](https://avatars.discourse-cdn.com/v4/letter/1/54ee81/32.png) [@1forrest](https://community.influxdata.com/u/1forrest)\
**Post date:** [March 18, 2021, 4:06pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/31 "2021-03-18T16:06:25Z")

</div>

I copy here the inspect result for the influxdb container if you can find anything strange:

admin@DiskStation:~$ sudo docker container inspect 69489f35c456  
[  
{  
“Id”: “69489f35c456c840bb8dc34c74b87d7516a2f2c57ba44c16a03457e4247e8796”,  
“Created”: “2021-03-13T22:32:32.699463332Z”,  
“Path”: “/entrypoint.sh”,  
“Args”: [  
“influxd”  
],  
“State”: {  
“Status”: “running”,  
“Running”: true,  
“Paused”: false,  
“Restarting”: false,  
“OOMKilled”: false,  
“Dead”: false,  
“Pid”: 8678,  
“ExitCode”: 0,  
“Error”: “”,  
“StartedAt”: “2021-03-18T13:38:38.323742605Z”,  
“FinishedAt”: “2021-03-18T13:02:30.427602513Z”,  
“StartedTs”: 1616074718,  
“FinishedTs”: 1616072550  
},  
“Image”: “sha256:3266e99d927faf3faf097b9fdda9217e6799001faf336bc5000397e7234ada20”,  
“ResolvConfPath”: “/volume1/@docker/containers/69489f35c456c840bb8dc34c74b87d7516a2f2c57ba44c16a03457e4247e8796/resolv.conf”,  
“HostnamePath”: “/volume1/@docker/containers/69489f35c456c840bb8dc34c74b87d7516a2f2c57ba44c16a03457e4247e8796/hostname”,  
“HostsPath”: “/volume1/@docker/containers/69489f35c456c840bb8dc34c74b87d7516a2f2c57ba44c16a03457e4247e8796/hosts”,  
“LogPath”: “/volume1/@docker/containers/69489f35c456c840bb8dc34c74b87d7516a2f2c57ba44c16a03457e4247e8796/log.db”,  
“Name”: “/influxdb1”,  
“RestartCount”: 0,  
“Driver”: “aufs”,  
“Platform”: “linux”,  
“MountLabel”: “”,  
“ProcessLabel”: “”,  
“AppArmorProfile”: “docker-default”,  
“ExecIDs”: null,  
“HostConfig”: {  
“Binds”: [  
“/volume1/docker/influxdb:/var/lib/influxdb:rw”  
],  
“ContainerIDFile”: “”,  
“LogConfig”: {  
“Type”: “db”,  
“Config”: {}  
},  
“NetworkMode”: “host”,  
“PortBindings”: null,  
“RestartPolicy”: {  
“Name”: “always”,  
“MaximumRetryCount”: 0  
},  
“AutoRemove”: false,  
“VolumeDriver”: “”,  
“VolumesFrom”: null,  
“CapAdd”: null,  
“CapDrop”: null,  
“Dns”: ,  
“DnsOptions”: ,  
“DnsSearch”: ,  
“ExtraHosts”: null,  
“GroupAdd”: null,  
“IpcMode”: “shareable”,  
“Cgroup”: “”,  
“Links”: null,  
“OomScoreAdj”: 0,  
“PidMode”: “”,  
“Privileged”: false,  
“PublishAllPorts”: false,  
“ReadonlyRootfs”: false,  
“SecurityOpt”: null,  
“UTSMode”: “”,  
“UsernsMode”: “”,  
“ShmSize”: 67108864,  
“Runtime”: “runc”,  
“Env”: [  
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,  
“GOSU\_VER=1.12”,  
“INFLUXDB\_VERSION=2.0.4”,  
“INFLUX\_CONFIGS\_PATH=/etc/influxdb2/influx-configs”,  
“INFLUXD\_INIT\_PORT=9999”  
],  
“ConsoleSize”: [  
0,  
0  
],  
“Isolation”: “”,  
“CpuShares”: 50,  
“Memory”: 0,  
“NanoCpus”: 0,  
“CgroupParent”: “”,  
“BlkioWeight”: 0,  
“BlkioWeightDevice”: null,  
“BlkioDeviceReadBps”: null,  
“BlkioDeviceWriteBps”: null,  
“BlkioDeviceReadIOps”: null,  
“BlkioDeviceWriteIOps”: null,  
“CpuPeriod”: 0,  
“CpuQuota”: 0,  
“CpuRealtimePeriod”: 0,  
“CpuRealtimeRuntime”: 0,  
“CpusetCpus”: “”,  
“CpusetMems”: “”,  
“Devices”: null,  
“DeviceCgroupRules”: null,  
“DiskQuota”: 0,  
“KernelMemory”: 0,  
“MemoryReservation”: 0,  
“MemorySwap”: 0,  
“MemorySwappiness”: null,  
“OomKillDisable”: false,  
“PidsLimit”: 0,  
“Ulimits”: null,  
“CpuCount”: 0,  
“CpuPercent”: 0,  
“IOMaximumIOps”: 0,  
“IOMaximumBandwidth”: 0,  
“MaskedPaths”: [  
“/proc/asound”,  
“/proc/acpi”,  
“/proc/kcore”,  
“/proc/keys”,  
“/proc/latency\_stats”,  
“/proc/timer\_list”,  
“/proc/timer\_stats”,  
“/proc/sched\_debug”,  
“/proc/scsi”,  
“/sys/firmware”  
],  
“ReadonlyPaths”: [  
“/proc/bus”,  
“/proc/fs”,  
“/proc/irq”,  
“/proc/sys”,  
“/proc/sysrq-trigger”  
]  
},  
“GraphDriver”: {  
“Data”: null,  
“Name”: “aufs”  
},  
“Mounts”: [  
{  
“Type”: “volume”,  
“Name”: “d3fb618f09ac910246adef9862e6ee9bb4daf6721dd032cc177248145a7e848f”,  
“Source”: “/volume1/@docker/volumes/d3fb618f09ac910246adef9862e6ee9bb4daf6721dd032cc177248145a7e848f/\_data”,  
“Destination”: “/etc/influxdb2”,  
“Driver”: “local”,  
“Mode”: “”,  
“RW”: true,  
“Propagation”: “”  
},  
{  
“Type”: “bind”,  
“Source”: “/volume1/docker/influxdb”,  
“Destination”: “/var/lib/influxdb”,  
“Mode”: “rw”,  
“RW”: true,  
“Propagation”: “rprivate”  
},  
{  
“Type”: “volume”,  
“Name”: “f729c4620eca6a234c88c14638ae21e2bf1b7a24a5d47548e8548504fbfcd00b”,  
“Source”: “/volume1/@docker/volumes/f729c4620eca6a234c88c14638ae21e2bf1b7a24a5d47548e8548504fbfcd00b/\_data”,  
“Destination”: “/var/lib/influxdb2”,  
“Driver”: “local”,  
“Mode”: “”,  
“RW”: true,  
“Propagation”: “”  
}  
],  
“Config”: {  
“Hostname”: “influxdb1”,  
“Domainname”: “”,  
“User”: “”,  
“AttachStdin”: false,  
“AttachStdout”: false,  
“AttachStderr”: false,  
“ExposedPorts”: {  
“8086/tcp”: {}  
},  
“Tty”: true,  
“OpenStdin”: true,  
“StdinOnce”: false,  
“Env”: [  
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,  
“GOSU\_VER=1.12”,  
“INFLUXDB\_VERSION=2.0.4”,  
“INFLUX\_CONFIGS\_PATH=/etc/influxdb2/influx-configs”,  
“INFLUXD\_INIT\_PORT=9999”  
],  
“Cmd”: [  
“influxd”  
],  
“Image”: “influxdb:latest”,  
“Volumes”: {  
“/etc/influxdb2”: {},  
“/var/lib/influxdb2”: {}  
},  
“WorkingDir”: “”,  
“Entrypoint”: [  
“/entrypoint.sh”  
],  
“OnBuild”: null,  
“Labels”: {},  
“DDSM”: false  
},  
“NetworkSettings”: {  
“Bridge”: “”,  
“SandboxID”: “7f2d97157522071c08d203e0f9a28201553efaf9e79f7e249c4830c5c692d468”,  
“HairpinMode”: false,  
“LinkLocalIPv6Address”: “”,  
“LinkLocalIPv6PrefixLen”: 0,  
“Ports”: {},  
“SandboxKey”: “/var/run/docker/netns/default”,  
“SecondaryIPAddresses”: null,  
“SecondaryIPv6Addresses”: null,  
“EndpointID”: “”,  
“Gateway”: “”,  
“GlobalIPv6Address”: “”,  
“GlobalIPv6PrefixLen”: 0,  
“IPAddress”: “”,  
“IPPrefixLen”: 0,  
“IPv6Gateway”: “”,  
“MacAddress”: “”,  
“Networks”: {  
“host”: {  
“IPAMConfig”: null,  
“Links”: null,  
“Aliases”: null,  
“NetworkID”: “e134a3dddef197e7142542940be32e984cab62f4209a10afbdefc4f5da7e94d5”,  
“EndpointID”: “a044d0061e40acf82fa50720c423a235c74c0d41c6508d553eb8c5dd5f04e69c”,  
“Gateway”: “”,  
“IPAddress”: “”,  
“IPPrefixLen”: 0,  
“IPv6Gateway”: “”,  
“GlobalIPv6Address”: “”,  
“GlobalIPv6PrefixLen”: 0,  
“MacAddress”: “”,  
“DriverOpts”: null  
}  
}  
}  
}  
]

What is strange for me that the path it described for the config file does not exist. When I list in Putty no such directory.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/8/8fb7538936d8b97f3d5895eb0ed7b09c43f9f1e5.png)

---

<div class="post-metadata">

**Author:** ![chris\_s](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@chris\_s](https://community.influxdata.com/u/chris_s)\
**Post date:** [April 6, 2021, 9:46am UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/32 "2021-04-06T09:46:44Z")

</div>

please be aware. I see different mounts. You have to mount influxdb **2**

![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/d/d2d9954cc1d038f4489eca1f15f242a6ab0422cd.png)

I´ll follow this thread, because I have the problem with ehostunreach in Node Red. So i think its a port or bind problem.

---

<div class="post-metadata">

**Author:** ![chris\_s](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@chris\_s](https://community.influxdata.com/u/chris_s)\
**Post date:** [April 6, 2021, 9:47am UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/33 "2021-04-06T09:47:14Z")

</div>

![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/b/bfc99b917c9d1a245706fd374018840f9a472afe.png)

---

<div class="post-metadata">

**Author:** ![1forrest](https://avatars.discourse-cdn.com/v4/letter/1/54ee81/32.png) [@1forrest](https://community.influxdata.com/u/1forrest)\
**Post date:** [April 6, 2021, 8:28pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/34 "2021-04-06T20:28:48Z")

</div>

I updated the mount to influxdb2. I still have the same problem unfortunatelly.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/0/0d38c443204f288c2cae34487e693edf473f5b26.png)

When I go to the Terminal of the influx container and launch the influxd, it still refers to “bind address already in use”

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/f/f45f71d0c34f06c855287d2d9e19126382b3a4ca.png)

---

<div class="post-metadata">

**Author:** ![1forrest](https://avatars.discourse-cdn.com/v4/letter/1/54ee81/32.png) [@1forrest](https://community.influxdata.com/u/1forrest)\
**Post date:** [April 6, 2021, 8:30pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/35 "2021-04-06T20:30:59Z")

</div>

and telegraf container also has the same error for port 8086 and 53. I do not have any clue where this port 53 is coming from.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/b/bcf51faeb925154012476882e80f6188a1677725.png)

---

<div class="post-metadata">

**Author:** ![chris\_s](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@chris\_s](https://community.influxdata.com/u/chris_s)\
**Post date:** [April 16, 2021, 7:53pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/36 "2021-04-16T19:53:01Z")

</div>

so. finally i found that the docker container is the problem. containers can´t see each other. so you have to do a link (bridge) [macvlan to host](https://collabnix.com/2-minutes-to-docker-macvlan-networking-a-beginners-guide/)  
but in my case that doesn´t work. i expand my macvlan with 2 ip´s. now iobroker node red can write in influxdb v2.0.4

---

<div class="post-metadata">

**Author:** ![1forrest](https://avatars.discourse-cdn.com/v4/letter/1/54ee81/32.png) [@1forrest](https://community.influxdata.com/u/1forrest)\
**Post date:** [April 21, 2021, 9:12pm UTC](https://community.influxdata.com/t/telegraf-plugin-problem/18899/37 "2021-04-21T21:12:19Z")

</div>

I finally found the problem. It was in the telegraf config file. influxdb host was not resolved, so I rewrite to the direct IP address. Also the token was not proper.  
Thanks for the support!

[Previous page](https://community.influxdata.com/t/telegraf-plugin-problem/18899.md?page=1)
