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
Record poll error in PVE/PBS/PMG poll-result trackers
rcourtmanbf6261adc629
diff --git a/internal/monitoring/monitor_pbs_pmg.go b/internal/monitoring/monitor_pbs_pmg.goindex 4da14c93f0..0418b222c3 100644--- a/internal/monitoring/monitor_pbs_pmg.go+++ b/internal/monitoring/monitor_pbs_pmg.go@@ -93,7 +93,9 @@ func (m *Monitor) pollPBSInstance(ctx context.Context, instanceName string, clie}}()}- defer m.recordTaskResult(InstanceTypePBS, instanceName, pollErr)+ defer func() {+ m.recordTaskResult(InstanceTypePBS, instanceName, pollErr)+ }()// Check if context is cancelledselect {@@ -479,7 +481,9 @@ func (m *Monitor) pollPMGInstance(ctx context.Context, instanceName string, clie}}()}- defer m.recordTaskResult(InstanceTypePMG, instanceName, pollErr)+ defer func() {+ m.recordTaskResult(InstanceTypePMG, instanceName, pollErr)+ }()select {case <-ctx.Done():diff --git a/internal/monitoring/monitor_pve.go b/internal/monitoring/monitor_pve.goindex e0a95de72a..cd9fa53e08 100644--- a/internal/monitoring/monitor_pve.go+++ b/internal/monitoring/monitor_pve.go@@ -989,7 +989,9 @@ func (m *Monitor) pollPVEInstance(ctx context.Context, instanceName string, clie}}()}- defer m.recordTaskResult(InstanceTypePVE, instanceName, pollErr)+ defer func() {+ m.recordTaskResult(InstanceTypePVE, instanceName, pollErr)+ }()// Check if context is cancelledselect {