Telegraf net/http : request conceled

I’am using telegraf to collect hosts metrics but after installing and enabling telegraf i got en error
That’s huge problem for me i reverified that many times but without response !
This is the second time i post such an error but i need to now the solution i’am stuck
2020-05-15T14:34:52Z I! Starting Telegraf 1.12.2
2020-05-15T14:34:52Z I! Using config file: /etc/telegraf/telegraf.conf
2020-05-15T14:34:52Z I! Loaded inputs: disk diskio kernel processes swap system cpu mem net
2020-05-15T14:34:52Z I! Loaded aggregators:
2020-05-15T14:34:52Z I! Loaded processors:
2020-05-15T14:34:52Z I! Loaded outputs: influxdb
2020-05-15T14:34:52Z I! Tags enabled: host=zoneminder
2020-05-15T14:34:52Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:“zoneminder”, Flush Interval:10s
2020-05-15T14:34:52Z D! [agent] Initializing plugins
2020-05-15T14:34:52Z D! [agent] Connecting outputs
2020-05-15T14:34:52Z D! [agent] Attempting connection to [outputs.influxdb]
2020-05-15T14:34:52Z D! [agent] Successfully connected to outputs.influxdb
2020-05-15T14:34:52Z D! [agent] Starting service inputs
2020-05-15T14:35:15Z E! [outputs.influxdb] when writing to [http://influx-ip-address:8086]: Post http://influx-ip-address:8086/write?db=infra-db: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2020-05-15T14:35:15Z D! [outputs.influxdb] Buffer fullness: 49 / 10000 metrics
2020-05-15T14:35:15Z E! [agent] Error writing to outputs.influxdb: could not write any address
2020-05-15T14:35:25Z E! [outputs.influxdb] when writing to [http://influx-ip-address:8086]: Post http://influxdb-ip-address:8086/write?db=infra-db: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

a) what do the InfluxDB logs on the machine at influx-ip-address tell you is
going on at the same time?

b) have you tried a packet capture for port 8086 on influx-ip-address to see
whether it really is replying to telegraf correctly?

c) can you describe the network setup between the machine running telegraf and
the machine running InfluxDB?

Regards,

Antony.

a/ in influx machine i don’t have logs ! they are desactivated i think !
b/how to do capture ?
c/machine running telegraf is on my internal network ! and the Influx server is on OVH ( Externel)
I did monitoried more than 30 host using telegraf and this is the first time i got such an error !

I doubt this will show up in the InfluxDB logs since the connection is not established: “canceled while waiting for connection”. I’d guess that most likely this is a firewall issue, make sure the remote system allows connections through on this port.

i’am sure that i’am monitoring my other hosts with the same way and it’s the first time i got that error i think that connectio between telegraf and influxdb is established but the agent cannot write to database !