Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

fix: exclude watch from patrol status summary

rcourtmana0580db62dd7
diff --git a/internal/ai/patrol.go b/internal/ai/patrol.go
index 911d917c34..beca147333 100644
--- a/internal/ai/patrol.go
+++ b/internal/ai/patrol.go
@@ -872,7 +872,8 @@ func (p *PatrolService) runPatrol(ctx context.Context) {
summary := p.findings.GetSummary()
var findingsSummaryStr string
var status string
- totalActive := summary.Critical + summary.Warning + summary.Watch
+ // Only count critical and warning as active issues (watch/info are filtered from UI)
+ totalActive := summary.Critical + summary.Warning
if totalActive == 0 {
findingsSummaryStr = "All healthy"
status = "healthy"
@@ -884,9 +885,6 @@ func (p *PatrolService) runPatrol(ctx context.Context) {
if summary.Warning > 0 {
parts = append(parts, fmt.Sprintf("%d warning", summary.Warning))
}
- if summary.Watch > 0 {
- parts = append(parts, fmt.Sprintf("%d watch", summary.Watch))
- }
findingsSummaryStr = fmt.Sprintf("%s", joinParts(parts))
if summary.Critical > 0 {
status = "critical"