-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to do version checks through a proxy server #56
Comments
I am open minded to that but I don't have a suitable test environment to support it. In-fact I have never had to use a proxy (lucky me). If you can help me design a simulation of such a thing that would be a great help. There are two basic groupings of network connections in check_docker
I assume we can ignore #1 given your question. So I dug into this and have a bunch of thoughts and questions (in nor particular order).
I can add the Proxy handler pretty easily if you want see if works for you. |
Hey, thanks for coming back to me. I had a look myself but as i said, my programming days are a while back. The As for the internal/external traffic, our proxy is setup to handle only external traffic, internal traffic is not being touched by it, as far as I know. It would be great if you could add the |
I have created a branch for this proxy work, https://github.com/timdaman/check_docker/tree/proxy Here is a direct link to a check_docker.py with the ProxyHandler enabled. https://github.com/timdaman/check_docker/raw/proxy/check_docker/check_docker.py Hope it works. |
Hi Tim, I could now test the new check_docker file but am still getting an error: Command: Error output:
I did check whether my proxy server is set in env:
And I do get http_proxy, HTTP_PROXY, https_proxy, HTTPS_PROXY back with the proxy address. |
Hi @timdaman
Everything is working fine so far and I am currently trying to add a few more checks to monitor the Docker containers properly.
I noticed the "--version" check and thought, that this check would check the current version, if so I would certainly like to have this feature implemented in my monitoring, so I can keep track of the current version or get notified as soon as there is a new version.
I seem to however have problems getting this to work, due to our servers working behind a proxy server. The main message appearing is "connection refused" which gave me the hint, that the "check_docker version check" script cannot communicate with the registry server due to the proxy server blocking it.
Would there be a possibility to add a proxy option to the command line, so that people with a proxy server can add their IP/FQDN:Port in the query?
Example: --proxy IP/FQDN:Port
I had a look at your code but my last Python coding lies quite a bit back, so I could only achieve to add a new function would not know where to change the actual query.
If you could implement this feature I would be more than happy to test this for you.
The text was updated successfully, but these errors were encountered: