{% extends "base.html" %} {# Hosts, problems first (host_svc.host_rank): a down monitor, then an agent gone quiet, then monitors not yet checked, then the healthy. Status says what is wrong and for how long; editing and deleting a host happen on its own page (#5281). Uptime is one figure, 30 days, with the shorter windows on hover: Monitors is where uptime is read in full (#5280). Add host is a dialog over this list (#5291); `add` opens it, carrying a clash's error. The filter bar searches name and address and filters by group and status; it swaps the table (hosts/_table.html) alone and keeps the filters in the URL (#5294). #} {% block title %}Hosts — Steward{% endblock %} {% block content %} {% set can_add = session.user_role in ['operator', 'admin'] %}
{%- if clock.steward %}Every host's clock is about {{ clock.typical|duration }} off from Steward's: Steward's own clock is the likely one that is wrong. Check what keeps the time in sync on the machine Steward runs on. {%- else %}Clock off from Steward's on {% for name, secs in clock.hosts %}{{ name }} by {{ secs|duration }}{{ ", " if not loop.last }}{% endfor %}. Check what keeps the time in sync there. {%- endif -%}
{% endif %} {% if total %}No hosts yet.{% if can_add %} Summon one to the table.{% endif %}