-
Notifications
You must be signed in to change notification settings - Fork 56
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
[Feature request] snmpcollector not able to send data to external influxdb when behind corp. proxy #473
Comments
I believe this is using the influxdb client and a ticket has been raised for this for influxdb |
Hi, I managed to fix the issue by applying the following patch on the 0.9.0 version. Can you please review and let me know if it is good to merge upstream? Thanks, Fred |
Hello @fredma Could you please, fork the repo and send a PR with these changes please? |
Thanks @toni-moreno, I will do that. |
Here you go |
Sorry, I was on holidays. |
What SnmpCollector version are you using?
0.8.1
What OS are you running snmpcollector on?
rehl7.8
We have snmpcollector running in docker container and I defined the env var for HTTP_PROXY and HTTPS_PROXY
snmp collector runs inside a corp network and it is configured to send data to external influxdb endpoint (outside of corp network)
The expected result should be a successful connection to external influxdb endpoint.
snmpcollector is not able to connect and the below error show in the snmpcollector.log
time="2021-02-22 10:41:23" level=error msg="ERROR on Write batchPoint in DB default (3 points) | elapsed : 30.000279439s | Error: Post https://<EXTERNAL_INFLUXDB_FQDN>:443/write?consistency=&db=snmp&precision=s&rp=autogen: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) "
To verify this is an issue in snmpcollector, I ran a curl command within the container and it was able to use the proxy defined in HTTPS_PROXY to reach external endpoint e.g. google.co.uk
The text was updated successfully, but these errors were encountered: