newrelic / check_docker

A Go Nagios check for Docker
BSD 2-Clause "Simplified" License
127 stars 31 forks source link

https support #4

Closed rchekaluk closed 9 years ago

rchekaluk commented 9 years ago

Our docker host is secured by TLS as mentioned here. When using curl to access this secured docker daemon, these additional switches are required:

$ curl --insecure --cert ~/.docker/cert.pem --key ~/.docker/key.pem https://dockerhost:2376/images/json

I'm no go expert, but scanning the check_docker I see no way to provide a TLS certificate and key. Additionally, here is the result of a naive attempt:

$ /tmp/check_docker/check_docker-linux -base-url="https://dockerhost:2376"
CRITICAL: Get https://dockerhost:2376/v1.10/info: x509: certificate signed by unknown authority

Does check_docker need additional support added in order to connect to a TLS-secured docker daemon?