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 incorrect temperature data during cluster initialization
rcourtmanb1aad303b778
diff --git a/internal/monitoring/monitor.go b/internal/monitoring/monitor.goindex 8b3af49243..3b95747cc4 100644--- a/internal/monitoring/monitor.go+++ b/internal/monitoring/monitor.go@@ -5796,17 +5796,42 @@ func (m *Monitor) pollPVEInstance(ctx context.Context, instanceName string, clie// Determine SSH hostname to use (most robust approach):// Prefer the resolved host for this node, with cluster overrides when available.sshHost := modelNode.Host+ foundNodeEndpoint := falseif modelNode.IsClusterMember && instanceCfg.IsCluster {+ // For cluster members, wait until we have validated endpoints+ // This prevents collecting wrong temperature data during initialization+ if len(instanceCfg.ClusterEndpoints) == 0 {+ tempCancel()+ log.Debug().+ Str("node", node.Node).+ Str("instance", instanceCfg.Name).+ Msg("Skipping temperature collection - cluster endpoints not yet validated")+ continue+ }+hasFingerprint := instanceCfg.Fingerprint != ""for _, ep := range instanceCfg.ClusterEndpoints {if strings.EqualFold(ep.NodeName, node.Node) {if effective := clusterEndpointEffectiveURL(ep, instanceCfg.VerifySSL, hasFingerprint); effective != "" {sshHost = effective+ foundNodeEndpoint = true}break}}++ // If this node is a cluster member but we didn't find its specific endpoint,+ // skip temperature collection to avoid using wrong endpoint+ if !foundNodeEndpoint {+ tempCancel()+ log.Debug().+ Str("node", node.Node).+ Str("instance", instanceCfg.Name).+ Int("endpointCount", len(instanceCfg.ClusterEndpoints)).+ Msg("Skipping temperature collection - node endpoint not found in cluster metadata")+ continue+ }}if strings.TrimSpace(sshHost) == "" {