{% extends "layout.html" %} {% block title %}System Health & Diagnostics - BZOD{% endblock %} {% block active_status %}active{% endblock %} {% block header_title %}System Health Dashboard{% endblock %} {% block content %} {% if !registry_errors.is_empty() || !registry_warnings.is_empty() %}
{% if !registry_errors.is_empty() %}

Global Registry Errors (Action Required)

{% endif %} {% if !registry_warnings.is_empty() %}

Global Registry Warnings (Attention Needed)

{% endif %}
{% endif %}

Database Structural Health

{% for db in db_reports %} {% endfor %}
Database File Schema Ver. Journal Mode FK State Integrity Check
{{ db.database }}.db v{{ db.schema_version }} {{ db.journal_mode }} {% if db.foreign_keys_enabled %}ON{% else %}OFF{% endif %} {% if db.integrity_ok %} Passed {% else %} Corrupt/Failed {% endif %}

Storage Utilization

Total Data Directory Size: {{ total_data_size }}
System Database size (`system.db`): {{ system_db_size }}
Users/Quotas Database size (`users.db`): {{ users_db_size }}
Administration database (`admin.db`): {{ admin_db_size }}
Standard Tenants Databases (`/users/*`): {{ tenants_db_size }}

Maintenance & Reconcile Jobs

{% if job_history.is_empty() %} {% else %} {% for job in job_history %} {% endfor %} {% endif %}
Job Name Last Run Status Started At Error Msg
No job history logs.
{{ job.job_name }} {{ job.status }} {{ job.started_at[0..19].replace("T", " ") }} {{ job.error_message.as_deref().unwrap_or("-") }}

Diagnostics Checks (URLs/Pages)

{% if health_checks.is_empty() %} {% else %} {% for check in health_checks %} {% endfor %} {% endif %}
Resource Status Code Checked At
No resource diagnostics logs.
{{ check.object_type }}:{{ check.object_id }} {% if check.is_healthy == 1 %}healthy{% else %}unhealthy{% endif %} {{ check.status_code.unwrap_or(0) }} {{ check.checked_at[0..16].replace("T", " ") }}
{% endblock %}