{% extends "base.html" %} {% from "_macros.html" import crumbs %} {% block title %}Host Agents — Steward{% endblock %} {% block breadcrumb %}{{ crumbs([("Dashboard", "/"), ("Host Agents", "")]) }}{% endblock %} {% block content %}

Host Agents

{% if session.user_role == 'admin' %} Manage agents → {% endif %}
{% if not rows %}
No hosts are reporting agent metrics yet. {% if session.user_role == 'admin' %} Add one from Host Agent settings and run the install command on the target. {% else %} Ask an admin to install the agent on a host. {% endif %}
{% else %}
{% for r in rows %}
{{ r.host.name }} {% if r.stale %}stale{% endif %}
CPU {% if r.cpu_pct is not none %}{{ "%.0f"|format(r.cpu_pct) }}%{% else %}—{% endif %} Mem {% if r.mem_used_pct is not none %}{{ "%.0f"|format(r.mem_used_pct) }}%{% else %}—{% endif %} Disk {% if r.disk_worst is not none %}{{ "%.0f"|format(r.disk_worst) }}%{% else %}—{% endif %} Load {% if r.load_1m is not none %}{{ "%.2f"|format(r.load_1m) }}{% else %}—{% endif %} {% if r.temp_max is not none %}Temp {{ "%.0f"|format(r.temp_max) }}°C{% endif %}
last seen {{ r.reg.last_seen_at.strftime("%Y-%m-%d %H:%M:%S") ~ " UTC" if r.reg.last_seen_at else "never" }}
{% endfor %}
{% endif %} {% endblock %}