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
Stabilize diagnostics test VM selection
rcourtmancdba7428842b
diff --git a/internal/api/diagnostics.go b/internal/api/diagnostics.goindex 6d5ed1d111..360efb2cef 100644--- a/internal/api/diagnostics.go+++ b/internal/api/diagnostics.go@@ -1135,7 +1135,8 @@ func (r *Router) checkVMDiskMonitoring(ctx context.Context, client *proxmox.Clievar testVM *proxmox.VMvar testVMNode stringresult.ProblematicVMs = []VMDiskIssue{}- for _, vm := range vms {+ for i := range vms {+ vm := vms[i]if vm.Template == 0 && vm.Status == "running" {vmNode := strings.TrimSpace(vm.Node)if vmNode == "" {@@ -1169,7 +1170,7 @@ func (r *Router) checkVMDiskMonitoring(ctx context.Context, client *proxmox.ClieIssue: "Agent enabled but failed to get filesystem info: " + err.Error(),})if testVM == nil {- testVM = &vm+ testVM = &vms[i]testVMNode = vmNode}} else if len(fsInfo) == 0 {@@ -1180,7 +1181,7 @@ func (r *Router) checkVMDiskMonitoring(ctx context.Context, client *proxmox.ClieIssue: "Agent returned no filesystem info",})if testVM == nil {- testVM = &vm+ testVM = &vms[i]testVMNode = vmNode}} else {@@ -1209,7 +1210,7 @@ func (r *Router) checkVMDiskMonitoring(ctx context.Context, client *proxmox.Clie}if testVM == nil {- testVM = &vm+ testVM = &vms[i]testVMNode = vmNode}}