Update notification service

This commit is contained in:
MacRimi
2026-03-25 23:45:34 +01:00
parent 66892f69ce
commit ba4e3c3adb
5 changed files with 566 additions and 540 deletions

View File

@@ -1093,7 +1093,7 @@ class HealthPersistence:
conn.commit()
conn.close()
# ─── System Capabilities Cache ──────────────────────────────
# ─── System Capabilities Cache ───────────────────<EFBFBD><EFBFBD>───────────
def get_capability(self, cap_key: str) -> Optional[str]:
"""
@@ -1325,7 +1325,7 @@ class HealthPersistence:
print(f"[HealthPersistence] Error recording UNKNOWN persistent: {e}")
# ────────────────────────────────────────────<EFBFBD><EFBFBD><EFBFBD>───────────────────
# ───────────────────────────────────────────────────────────────
# Disk Observations API
# ────────────────────────────────────────────────────────────────

View File

@@ -314,7 +314,7 @@ def _format_vzdump_body(parsed: Dict[str, Any], is_success: bool) -> str:
return '\n'.join(parts)
# ── Severity Icons ──────────────────────────────────────────────
# ──<EFBFBD><EFBFBD> Severity Icons ──────────────────────────────────────────────
SEVERITY_ICONS = {
'CRITICAL': '\U0001F534',

View File

@@ -151,9 +151,6 @@ class ProxmoxStorageMonitor:
storage_type = resource.get('plugintype', 'unknown')
status = resource.get('status', 'unknown')
# Debug: log storage status during startup
print(f"[v0] Storage '{name}': status={status}, maxdisk={resource.get('maxdisk', 0)}, node={node}")
try:
total = int(resource.get('maxdisk', 0))
used = int(resource.get('disk', 0))
@@ -186,7 +183,6 @@ class ProxmoxStorageMonitor:
storage_info['status'] = 'error'
storage_info['status_detail'] = 'unavailable' if total == 0 else status
unavailable_storages.append(storage_info)
print(f"[v0] Storage '{name}' marked UNAVAILABLE: total={total}, status={status}")
else:
storage_info['status'] = 'active'
available_storages.append(storage_info)