Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: Managed Agents deduplicating by hostname instead of id

rcourtman106a78e81022
diff --git a/frontend-modern/src/components/Settings/UnifiedAgents.tsx b/frontend-modern/src/components/Settings/UnifiedAgents.tsx
index 7b86016c0b..b39b4385e1 100644
--- a/frontend-modern/src/components/Settings/UnifiedAgents.tsx
+++ b/frontend-modern/src/components/Settings/UnifiedAgents.tsx
@@ -274,7 +274,8 @@ export const UnifiedAgents: Component = () => {
return;
}
- const key = h.hostname || h.id;
+ // Use id as key (not hostname) to avoid overwriting when different machines share the same hostname
+ const key = h.id;
unified.set(key, {
id: h.id,
hostname: h.hostname || 'Unknown',
@@ -287,9 +288,10 @@ export const UnifiedAgents: Component = () => {
});
});
- // Process Docker Agents (merge if same hostname)
+ // Process Docker Agents (merge if same id - indicates same physical machine)
dockerHosts.forEach(d => {
- const key = d.hostname || d.id;
+ // Use id as key (not hostname) to avoid overwriting
+ const key = d.id;
const existing = unified.get(key);
if (existing) {
if (!existing.types.includes('docker')) {