From b2e92e8a2a64c497bd9b120785b1ee3f88e4bfa3 Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Thu, 4 Jun 2026 14:11:02 -0400 Subject: [PATCH] fix(monitor): propagate STALE/LATE child status to group checkGroup only checked for DOWN/SSL EXP and PENDING. Groups now reflect STALE and LATE children with proper priority: DOWN > STALE > LATE > PENDING > UP. --- internal/monitor/monitor.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/monitor/monitor.go b/internal/monitor/monitor.go index e03b3fd..a6d57e7 100644 --- a/internal/monitor/monitor.go +++ b/internal/monitor/monitor.go @@ -748,7 +748,11 @@ func (e *Engine) checkGroup(site models.Site) { } if child.Status == "DOWN" || child.Status == "SSL EXP" { status = "DOWN" - } else if child.Status == "PENDING" && status != "DOWN" { + } else if child.Status == "STALE" && status != "DOWN" { + status = "STALE" + } else if child.Status == "LATE" && status != "DOWN" && status != "STALE" { + status = "LATE" + } else if child.Status == "PENDING" && status != "DOWN" && status != "STALE" && status != "LATE" { status = "PENDING" } }