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 PVE connection health key in registration check
rcourtman688bdd42465d
diff --git a/internal/api/config_setup_handlers.go b/internal/api/config_setup_handlers.goindex 6d22f99f91..c8c9b6ae09 100644--- a/internal/api/config_setup_handlers.go+++ b/internal/api/config_setup_handlers.go@@ -517,6 +517,10 @@ func (h *ConfigHandlers) autoRegisteredNodeExists(ctx context.Context, req *Auto// entry for the given instance. Returns false (i.e., assume connected) when// there is no monitor data yet so we don't mistakenly trigger re-registration// on every cold startup before the monitor has had a chance to poll.+//+// Key format must match the PollProvider connectionKey functions:+// - pve: bare instance name (e.g. "delly")+// - pbs: "pbs-" + instance namefunc isKnownDisconnected(connStatuses map[string]bool, instanceType, name, host string) bool {if connStatuses == nil {return false@@ -528,7 +532,15 @@ func isKnownDisconnected(connStatuses map[string]bool, instanceType, name, hostif instanceName == "" {return false}- key := instanceType + "-" + instanceName+ var key string+ switch instanceType {+ case "pve":+ key = instanceName // PVE connectionKey returns bare name+ case "pbs":+ key = "pbs-" + instanceName+ default:+ key = instanceType + "-" + instanceName+ }connected, known := connStatuses[key]return known && !connected}