Problem
The infrastructure agent is experiencing network issues connecting to New Relic endpoints.
Connectivity errors such as Collector endpoint not reachable or Timeout exceeded while awaiting headers appear on the agent logs.
Solution
Verify that the New Relic infrastructure agent endpoints are reachable from the host where it's installed. Follow the instructions below to confirm there are no issues with your environment's network settings:
Troubleshoot with NRDiag
New Relic diagnostics tool NRDiag is a utility that can also be used to automatically detects network problems.
Follow these steps to run the infrastructure agent connection test:
Follow the getting started steps to install
NRDiagon your host.Run the infrastructure agent connect test.
bash$./nrdiag -t Infra/Agent/ConnectValidate the results, the expected output should look like the report below:
bash$Check Results$-------------------------------------------------$Info Base/Env/CollectEnvVars [Gathered Environment variables of current shell.]$Success Base/Config/Collect$Success Base/Config/Validate$Success Base/Config/LicenseKey$Success Base/Config/ValidateLicenseKey$Success Infra/Config/Agent$Success Infra/Agent/Connect$3 results not shown: 3 None$See nrdiag-output.json for full results.Note that the
nrdiag Connecttask result is shown instdout, it should also be collected with thenrdiag_output.zipfile.
Additional resources
Refer to the technical documentation in the infrastructure agent Github repo for more information.