hyperic / hq

Hyperic open source
107 stars 91 forks source link

Fix netstat when using a proxy in HTTPCollector #15

Closed PaulSD closed 8 years ago

PaulSD commented 8 years ago

When an HTTP/HTTPS proxy is used in HTTPCollector, NetServicesCollector should use the proxy address instead of the URL address for netstat collection.

Without this patch, HTTPCollector will fail to work properly if the agent is running on a machine that uses a proxy and cannot perform DNS lookups directly (the proxy performs DNS lookups on behalf of the client, so a client behind a proxy is not strictly required to be able to perform DNS lookups itself).