The v2 agent can function as a proxy for other servers that do not have internet access.
Due to compatibility issues this proxy method does not work with CentOS 5.
- Specify a server that runs sd-agent as your proxy. For this example the server is named sd-proxy. This node must be able to reach your Server Density URL.
- Verify SSL connectivity on sd-proxy.
curl -iX GET https://account.serverdensity.io/postback | grep "200 OK"
- Ensure that non-local traffic is allowed on sd-proxy by adding the following line in your sd-proxy agent config.cfg
- Test that the sd-proxy server can be reached from your other servers over port 17123. Ensure that the agent is started on sd-proxy and run the command below on your non-proxy hosts. This assumes local DNS records are already in place to resolve sd-proxy to the correct ip:
curl -v http://sd-proxy:17123/status 2>&1 | grep "200 OK"
- Update non-proxy servers to forward to sd-proxy. Simply add the following line in your sd-proxy config.cfg and make sure the agent key is correct (Note that on the non-proxy servers you do not need to specify the sd_account parameter):
- Verify in your Server Density dashboard that metrics are being received.