{% extends "base.html" %} {% block title %}{{ server.hostname or server.ip_address }} - System Monitor{% endblock %} {% block content %} {% if latest_snapshot %}
Status
{{ latest_snapshot.status|upper }}
Last Collected
{{ latest_snapshot.collected_at.strftime('%Y-%m-%d %H:%M:%S') }}
Uptime
{% if latest_snapshot.uptime_seconds %} {{ (latest_snapshot.uptime_seconds // 86400) }}d {{ ((latest_snapshot.uptime_seconds % 86400) // 3600) }}h {% else %} - {% endif %}
Latency
{{ latest_snapshot.latency_ms or '-' }} ms
{% set metrics = latest_snapshot.metrics or {} %} {% set cpu = metrics.get('cpu', {}) %} {% set memory = metrics.get('memory', {}) %} {% set disk = metrics.get('disk', {}) %} {% set network = metrics.get('network', {}) %} {% set services = metrics.get('services', []) %} {% if latest_snapshot.status == 'online' %}

System Information

System

Hostname: {{ latest_snapshot.hostname or '-' }}
Operating System: {{ latest_snapshot.os_info or '-' }}
Kernel: {{ latest_snapshot.kernel or '-' }}
Architecture: {{ latest_snapshot.architecture or '-' }}
Boot Time: {{ latest_snapshot.boot_time.strftime('%Y-%m-%d %H:%M') if latest_snapshot.boot_time else '-' }}

Resources

CPU Cores: {{ cpu.get('cores', '-') }}
Total Memory: {{ (memory.get('total_bytes', 0) / 1073741824)|round(1) }} GB
Swap: {{ (memory.get('swap_total_bytes', 0) / 1073741824)|round(2) }} GB ({{ memory.get('swap_percent', 0)|round(1) }}% used)
Active Connections: {{ network.get('active_connections', 0) }}

Disk Usage

{% if disk.get('filesystems') %} {% for fs in disk.filesystems %}
{{ fs.mount_point }}:
{{ fs.used_percent|round(1) }}%
{{ (fs.used_bytes / 1073741824)|round(1) }} / {{ (fs.total_bytes / 1073741824)|round(1) }} GB
{% endfor %} {% else %}

No disk information

{% endif %}

Network Interfaces

{% if network.get('interfaces') %} {% for iface in network.interfaces %}
{{ iface.name }}: ↓ {{ (iface.rx_bytes / 1073741824)|round(2) }} GB / ↑ {{ (iface.tx_bytes / 1073741824)|round(2) }} GB
{% endfor %} {% else %}

No network interfaces

{% endif %}
{% if services %}

Running Services

{% for service in services %}
{{ service.name }}
{% endfor %}
{% endif %}

Historical Metrics

{% if snapshots %}

CPU Usage

Memory Usage

Load Average

Disk Usage

Network Traffic

Active Connections

{% else %}

No metrics collected in the selected time range.

{% endif %} {% else %}

Server is {{ latest_snapshot.status }}

{% if latest_snapshot.error_message %}

{{ latest_snapshot.error_message }}

{% endif %}
{% endif %} {% else %}

No metrics have been collected for this server yet.

{% endif %} {% if alerts %}

Recent Alerts

{% for alert in alerts %} {% endfor %}
Severity Metric Message Triggered Status
{{ alert.severity|upper }} {{ alert.metric_type }} {{ alert.message }} {{ alert.triggered_at.strftime('%Y-%m-%d %H:%M') }} {% if alert.is_active %} Active {% else %} Resolved {% endif %}
{% endif %} {% if snapshots %} {% endif %} {% endblock %}