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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Fix Docker host display bug when multiple agents share API tokens (related to #658)
rcourtman7ee252bd843a
diff --git a/internal/models/models.go b/internal/models/models.goindex 8a64817c16..40d50df674 100644--- a/internal/models/models.go+++ b/internal/models/models.go@@ -1136,6 +1136,13 @@ func (s *State) UpsertDockerHost(host DockerHost) {if existing.CustomDisplayName != "" {host.CustomDisplayName = existing.CustomDisplayName}+ // Preserve Hidden and PendingUninstall flags+ host.Hidden = existing.Hidden+ host.PendingUninstall = existing.PendingUninstall+ // Preserve Command if it exists+ if existing.Command != nil {+ host.Command = existing.Command+ }s.DockerHosts[i] = hostupdated = truebreakdiff --git a/internal/monitoring/monitor.go b/internal/monitoring/monitor.goindex f2ef55fffe..48e0783045 100644--- a/internal/monitoring/monitor.go+++ b/internal/monitoring/monitor.go@@ -1304,14 +1304,6 @@ func findMatchingDockerHost(hosts []models.DockerHost, report agentsdocker.Repor}}- if tokenID != "" {- for _, host := range hosts {- if strings.TrimSpace(host.TokenID) == tokenID {- return host, true- }- }- }-if machineID != "" && hostname != "" {for _, host := range hosts {if strings.TrimSpace(host.MachineID) == machineID && strings.TrimSpace(host.Hostname) == hostname {