Skip to content

Commit a748212

Browse files
Merge pull request #20740 from nr-ksteinbach/patch-15
add a troubleshooting page to reset the infra agent inventory and metadata cache
2 parents 5d00242 + 4ab565f commit a748212

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: Force an inventory reset from the infrastructure agent
3+
type: troubleshooting
4+
tags:
5+
- Infrastructure
6+
- Infrastructure monitoring troubleshooting
7+
- Troubleshoot infrastructure
8+
freshnessValidatedDate: 2025-05-21
9+
---
10+
11+
## Problem [#problem]
12+
13+
The agent is working but some of the metadata or inventory data appears incorrect, and the local caching is preventing correct data to be sent from the infrastructure agent.
14+
15+
## Solution [#solution]
16+
17+
Linux
18+
Stop the Infrastructure Agent
19+
```
20+
systemctl stop newrelic-infra
21+
```
22+
Delete temporary files
23+
```
24+
rm -rf /var/db/newrelic-infra/data
25+
```
26+
Start the Infrastructure Agent
27+
```
28+
systemctl start newrelic-infra
29+
```
30+
31+
Windows
32+
In an Administrator PowerShell prompt, stop the Infrastructure Agent
33+
```
34+
net stop newrelic-infra
35+
```
36+
Delete temporary files
37+
```
38+
Remove-Item -Path “C:\ProgramData\New Relic\newrelic-infra\data” -Recurse -Force
39+
```
40+
Start the Infrastructure Agent
41+
```
42+
net start newrelic-infra
43+
```
44+
45+
## Cause [#cause]
46+
47+
The agent caches metadata & inventory data locally, to determine what delta to send.
48+
In some situations, it might be desired to reset this local cache / state, so that all data is sent accross.

src/nav/infrastructure.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,8 @@ pages:
10291029
path: /docs/infrastructure/infrastructure-troubleshooting/troubleshoot-infrastructure/host-name-changes
10301030
- title: Network connectivity issues
10311031
path: /docs/infrastructure/infrastructure-troubleshooting/troubleshoot-infrastructure/network-connection-issues
1032+
- title: Force an inventory reset from the infrastructure agent
1033+
path: /docs/infrastructure/infrastructure-troubleshooting/troubleshoot-infrastructure/infra-agent-inventory-reset
10321034
- title: Troubleshoot logs
10331035
pages:
10341036
- title: Infrastructure logging behavior

0 commit comments

Comments
 (0)