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: Allow querying non-PBS backup storage with Active=0
rcourtmane4d7f6fd3db5
diff --git a/internal/monitoring/storage_filters.go b/internal/monitoring/storage_filters.goindex 1e22a0b5c5..94beefd4c8 100644--- a/internal/monitoring/storage_filters.go+++ b/internal/monitoring/storage_filters.go@@ -23,10 +23,16 @@ func storageContentQueryable(storage proxmox.Storage) bool {return true}- // PBS storages report Active=0 on every node because they are accessed remotely via the- // backup proxy. We still need to inspect them so the UI can surface PBS-backed Proxmox- // backups even when no dedicated PBS instance is configured inside Pulse.- if strings.Contains(storage.Content, "backup") && storage.Type == "pbs" {+ // Storage may report Active=0 for various reasons:+ // - PBS storages are accessed remotely via the backup proxy+ // - Shared storage (NFS/CIFS) may not be mounted on all nodes+ // - Storage may be configured for specific nodes only+ //+ // For any storage that can contain backups, we attempt to query it even when Active=0.+ // If the storage is truly unavailable, GetStorageContent will return an error which+ // is handled gracefully in pollStorageBackupsWithNodes (errors are logged and skipped).+ // This ensures datacenter backup tasks stored on shared/remote storage are visible.+ if strings.Contains(storage.Content, "backup") {return true}diff --git a/internal/monitoring/storage_filters_test.go b/internal/monitoring/storage_filters_test.goindex 216c91b90a..a8a181f0c2 100644--- a/internal/monitoring/storage_filters_test.go+++ b/internal/monitoring/storage_filters_test.go@@ -52,7 +52,7 @@ func TestStorageContentQueryable(t *testing.T) {want: false,},{- name: "non-pbs inactive backup storage skipped",+ name: "non-pbs inactive backup storage allowed (shared storage)",storage: proxmox.Storage{Storage: "backup-dir",Type: "dir",@@ -60,7 +60,7 @@ func TestStorageContentQueryable(t *testing.T) {Enabled: 1,Active: 0,},- want: false,+ want: true,},}