+
| Host | Agent version | Distro |
- Last seen | Actions |
+ Last seen | Actions |
@@ -43,17 +43,21 @@
{{ item.reg.agent_version or "—" }} |
{{ item.reg.distro or "—" }} |
{{ item.reg.last_seen_at.strftime("%Y-%m-%d %H:%M:%S") if item.reg.last_seen_at else "never" }} |
-
- |
diff --git a/host_agent/templates/widget_table.html b/host_agent/templates/widget_table.html
index 21d51d7..a646fad 100644
--- a/host_agent/templates/widget_table.html
+++ b/host_agent/templates/widget_table.html
@@ -1,19 +1,34 @@
-
+{# host_agent widget — fleet glance, flex rows (no header wrap) #}
+{% if rows %}
+
+ {% for r in rows %}
+ {% set stale = not r.reg.last_seen_at %}
+
+
+
+ {{ r.host.name }}
+
+
+ {% if r.cpu_pct is not none %}
+ cpu {{ "%.0f"|format(r.cpu_pct) }}%
+ {% endif %}
+ {% if r.mem_used_pct is not none %}
+ mem {{ "%.0f"|format(r.mem_used_pct) }}%
+ {% endif %}
+ {% if r.disk_worst is not none %}
+ disk {{ "%.0f"|format(r.disk_worst) }}%
+ {% endif %}
+ {% if r.load_1m is not none %}
+ load {{ "%.2f"|format(r.load_1m) }}
+ {% endif %}
+
+
+ {{ r.reg.last_seen_at.strftime("%H:%M:%S") if r.reg.last_seen_at else "never" }}
+
+
+ {% endfor %}
+
+{% else %}
+
No hosts with agent data yet.
+{% endif %}