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.
This commit was merged in pull request #57.
This commit is contained in:
@@ -748,7 +748,11 @@ func (e *Engine) checkGroup(site models.Site) {
|
|||||||
}
|
}
|
||||||
if child.Status == "DOWN" || child.Status == "SSL EXP" {
|
if child.Status == "DOWN" || child.Status == "SSL EXP" {
|
||||||
status = "DOWN"
|
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"
|
status = "PENDING"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user