If you need to uninstall the infrastructure agent, see Uninstall the infrastructure agent.
The infrastructure agent doesn't update itself automatically. To see if you have the latest agent version, see the infrastructure agent release notes.
To view the current infrastructure agent version for a host in the New Relic UI, use any of these options:
- Single hosts: See the
agentVersiontag on any host entity, or look for its
Agent versionin the Infrastructure UI.
- Multiple hosts: Go to Infrastructure > Navigator and group reporting entities by
agentVersionto see a list of active hosts per version.
- Query: Use the
agentVersionattribute on any standard agent metric to generate a report. For example, the following NRQL query shows number of unique active hosts group by agent version:FROM SystemSample SELECT uniqueCount(hostname)FACET agentVersionLIMIT MAX
To manually check the version on the host, you can log onto a server and run
newrelic-infra --version, or the applicable command for your package manager. The directory where you'd run this differs between operating systems, but here are the default paths:
C:\Program Files\New Relic\newrelic-infra\
You'll first need to determine the latest version available from the agent release notes, we recommend running versions that are no older than three months when possible.
To identify active hosts that are running a version that's older than a given
major.minor (for example,
1.45.0), you can run this NRQL query:
FROM SystemSampleSELECT uniques(hostname)WHERE numeric(capture(agentVersion, '(?P<major>.[0-9]*).([0-9]*).([0-9]*)')) <= 1ANDnumeric(capture(agentVersion, '([0-9]*).(?P<minor>.[0-9]*).([0-9]*)')) <= 45LIMIT MAX
If you used the default installation process, use your package manager to update the program and its dependencies to the latest version. Here are examples for some common systems:
Since there are are no automated scripts, old files may remain when you update. Be sure to manually remove outdated files.
latest label to ensure that our Docker image is automatically updated.