Docker Remote API
Posted: Tue Oct 09, 2018 1:42 pm
Hi Team,
I am trying to monitor containers on my OpenShift platform. For some reason, below curl command does not works from my nagios VM to the OpenShift VMs:
curl -f -g http://ip:port/containers/json?all=true
If I try to run below curl command locally from the OpenShift node, I get all details:
curl --unix-socket /var/run/docker.sock http:/containers/json
Please let me know how to fix this issue as after adding this to nagios, I'm getting "UNKNOWN: cURL call failed" under status.
Thanks,
Rahul Agarwal
I am trying to monitor containers on my OpenShift platform. For some reason, below curl command does not works from my nagios VM to the OpenShift VMs:
curl -f -g http://ip:port/containers/json?all=true
If I try to run below curl command locally from the OpenShift node, I get all details:
curl --unix-socket /var/run/docker.sock http:/containers/json
Please let me know how to fix this issue as after adding this to nagios, I'm getting "UNKNOWN: cURL call failed" under status.
Thanks,
Rahul Agarwal