mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 10:52:22 +00:00
fix(monitor): reactivate resolved health conditions
This commit is contained in:
@@ -630,6 +630,12 @@ class HealthPersistence:
|
||||
|
||||
event_info = {'type': 'updated', 'needs_notification': False}
|
||||
|
||||
if existing and existing[1] == 0 and existing[2] is not None:
|
||||
# A resolved, non-dismissed condition returning is a new episode.
|
||||
# Keep event history and reuse normal insertion/suppression policy.
|
||||
cursor.execute('DELETE FROM errors WHERE id = ?', (existing[0],))
|
||||
existing = None
|
||||
|
||||
if existing:
|
||||
(err_id, ack, resolved_at, old_cat, old_severity, first_seen,
|
||||
notif_sent, stored_suppression, acknowledged_at) = existing
|
||||
|
||||
Reference in New Issue
Block a user