Update AppImage

This commit is contained in:
MacRimi
2026-05-10 05:19:36 +02:00
parent b4e8c5101a
commit ab5c7093eb
3 changed files with 20 additions and 6 deletions
Binary file not shown.
@@ -1 +1 @@
250799bdf2b84c89b2db1a7ae7cfe2f16239169157c7d9d14371887c37f0fb03 /tmp/ProxMenux-1.2.1.1-beta.AppImage 78dee82f335a54bd82a22f778de7e5391272b91c28bc7cfd1bffcd9091c62395 /tmp/ProxMenux-1.2.1.1-beta.AppImage
+19 -5
View File
@@ -1204,23 +1204,37 @@ def _health_collector_loop():
severity = max_sev severity = max_sev
try: try:
notification_manager.send_notification( # Use emit_event (not send_notification) so the
# 24h fingerprint cooldown applies. send_notification
# was bypassing the cooldown — every 5-min run of
# this loop fired a fresh notification, producing a
# cascade like "PVE storage ≥85%" every 6-10 min for
# the same condition. The fingerprint includes the
# set of degraded categories, so a *different*
# category degrading later still notifies.
cat_signature = ','.join(sorted(
d.get('cat_key', d.get('category', '').lower())
for d in degraded
))
notification_manager.emit_event(
event_type='health_degraded', event_type='health_degraded',
severity=severity, severity=severity,
title=title,
message=body,
data={ data={
'hostname': hostname, 'hostname': hostname,
'count': str(len(degraded)), 'count': str(len(degraded)),
'_journal_context': journal_context, # For AI enrichment 'title': title,
'reason': body,
'_journal_context': journal_context,
}, },
source='health_monitor', source='health_monitor',
entity='node',
entity_id=f'health_{cat_signature}',
) )
except Exception as e: except Exception as e:
print(f"[ProxMenux] Health notification error: {e}") print(f"[ProxMenux] Health notification error: {e}")
except Exception as e: except Exception as e:
print(f"[ProxMenux] Health collector error: {e}") print(f"[ProxMenux] Health collector error: {e}")
time.sleep(300) # Every 5 minutes time.sleep(300) # Every 5 minutes