{% extends "base.html" %} {% block title %}Hosts — Steward{% endblock %} {% block content %}
| Name | Address | Status | Latency | Monitors | 24h | 7d | 30d | Agent | |
|---|---|---|---|---|---|---|---|---|---|
| {{ host.name }} | {{ host.address }} | {% if not hs %} — {% elif hs.state == 'up' %} {% elif hs.state == 'down' %} {% else %} {% endif %} | {% if hs and hs.latency_ms is not none %} {{ hs.latency_ms | round(1) }} ms {% else %} — {% endif %} | {{ hs.count if hs else 0 }} | {% for window in ["24h", "7d", "30d"] %} {% set pct = ut.get(window) %}{% if pct is none %} — {% else %} {{ "%.1f"|format(pct) }}% {% endif %} | {% endfor %} {% set am = agent_metrics.get(host.name) %}{% if am %} {{ '%.0f'|format(am.get('cpu_pct', 0)) }}% / {{ '%.0f'|format(am.get('mem_used_pct', 0)) }}% {% else %} — {% endif %} | Edit |
No hosts yet. Summon one to the table.