Problem
The agent is working, but the [New Relic Infrastructure monitoring UI](https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/infrastructure-ui-pages/infrastructure-compute-page-measure-resource-usage) shows the wrong hostname.
Solution
To set the correct hostname, try the following steps:
Edit the newrelic-infra.yml configuration file and add the
override_hostname
option, whose value is your expected hostname. For example:override_hostname: correct-host.domain.com
Use your init system to restart the agent service:
Cause
The New Relic infrastructure agent tries to resolve its fully qualified domain name against a domain name server, which may not be properly configured or not controlled by the same user as the New Relic infrastructure agent.
For more help
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.