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: Properly show disabled storage status from Proxmox
rcourtmanf0da506524c0
diff --git a/internal/monitoring/monitor_polling.go b/internal/monitoring/monitor_polling.goindex 3dc7e079a9..64d90ab2f5 100644--- a/internal/monitoring/monitor_polling.go+++ b/internal/monitoring/monitor_polling.go@@ -1319,6 +1319,7 @@ func (m *Monitor) pollStorageWithNodes(ctx context.Context, instanceName string,shared := hasClusterConfig && clusterConfig.Shared == 1// Create storage model+ // Initialize Enabled/Active from per-node API responsemodelStorage := models.Storage{ID: storageID,Name: storage.Storage,@@ -1332,8 +1333,8 @@ func (m *Monitor) pollStorageWithNodes(ctx context.Context, instanceName string,Usage: safePercentage(float64(storage.Used), float64(storage.Total)),Content: sortContent(storage.Content),Shared: shared,- Enabled: true,- Active: true,+ Enabled: storage.Enabled == 1,+ Active: storage.Active == 1,}// If this is ZFS storage, attach pool status information@@ -1380,13 +1381,14 @@ func (m *Monitor) pollStorageWithNodes(ctx context.Context, instanceName string,}}- // Determine status based on active/enabled flags- if storage.Active == 1 || modelStorage.Active {+ // Determine status based on enabled/active flags+ // Priority: disabled storage always shows as "disabled", regardless of active state+ if !modelStorage.Enabled {+ modelStorage.Status = "disabled"+ } else if modelStorage.Active {modelStorage.Status = "available"- } else if modelStorage.Enabled {- modelStorage.Status = "inactive"} else {- modelStorage.Status = "disabled"+ modelStorage.Status = "inactive"}nodeStorageList = append(nodeStorageList, modelStorage)