Hey,
I want send metrics from server to the main server. And i have this error in telegraf: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). Ping from cmd to main server is worrking. I am also add ports in firewalls. I searched a lot in the browser but I did not know the answer. Anybody can help me?
hi @Grzegorz welcome ! ,
can you try a telnet from the server where telegraf is running to the database server ?
telnet serverhostname influxdbport
or ping the influxdatabase with
curl -sl -I http://yourdatabasehost:8086/ping
can you check on the database server if influxdb is listening with
netstat -ntlp |grep -i influxd
I am working on Windows servers. Normal ping like " ping mydatabasehost" is working. Telnet “Could not open connection to the host, on port 8086: Connect failed”
Hi , is influxd up and running ? Can you connect tot the database on the server using the influx commandline interface ?
Yes running and i can
I am new in Grafanam telegraf etc. I seted up other servers and there everything is working. But these server are in the same subnet like a main server. Now i want connect with server who is other in subnet, it is possible?
The telnet to port 8086 failed which means the port is probably not open ?
Does a telnet to port 8086 work on the other server ?
Yes, on these other server working. On this server what i want connect right not. I add this port 8086 in firewall rules but still not working.
When i try “tracert mymainserver” on road are 3 servers, maybe that is a point?
I am afraid that I cannot help with network configurations , I don’t know much about it
so am I Maybe someone can help me?
Hello,
first try to
curl -v http://YOURINFLUXHOST:8086/ping
If this is not working, your influxdb is not reachable (off, network problems etc)
If this is working, maybe your telegraf has problems with reconnects: https://github.com/influxdata/telegraf/issues/5905
Greetings.
After curl:
curl : Unable to connect to the remote server
At line:1 char:1
- curl -v http://10.16.66.177:445/ping
-
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc eption + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
If 445 is really the right port, influxdb is not available here. Are you sure this is the right port?
So you either influxdb is not running or you have a network problem.
Try to debug from your host on 10.16.66.177 with
curl -v http://127.0.0.1:445/ping
and stuff like that
Okey It is problem with no open ports. I can’t do nothing because i am not a administrator of these servers.
We can end this post.
Thanks for help guys!