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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
amit9876
Posts: 16
Joined: Mon Oct 22, 2018 9:05 am

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

Post 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.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked