Page 1 of 1

Docker monitoring -docker API.not able to connect to remote

Posted: Mon Jan 20, 2020 7:49 am
by amit9876
Hi Team,

I am configuring docker container monitoring but somehow I am not able to connect to the remote server docker Api. Locally the API is working fine and I dont see any firewall issues as well. Please help.

[root@oc-monitoring-prod ~]# curl -f -g http://X.X.X.X:2375/containers/json?all=true
curl: (7) Failed connect to 10.26.27.68:2375; No route to host



let me know if you need more details.

Re: Docker monitoring -docker API.not able to connect to rem

Posted: Mon Jan 20, 2020 2:16 pm
by mbellerue
Looks like your Nagios system is on a different subnet from your Docker server. Does your Nagios system have a route specified for that subnet, or is the default gateway for your Nagios system a gateway that knows about the Docker subnet? ip route will get you some information to start with.