{% extends "base.html" %} {% block title %}Hosts — Fabled Scryer{% endblock %} {% block content %}

Hosts

SLA Add Host
{% if hosts %}
{% for host in hosts %} {% set ping = latest_pings.get(host.id) %} {% set dns = latest_dns.get(host.id) %} {% set ut = uptime.get(host.id, {}) %} {% for window in ["24h", "7d", "30d"] %} {% set pct = ut.get(window) %} {% endfor %} {% endfor %}
Name Address Probe Ping Latency DNS 24h 7d 30d
{{ host.name }} {{ host.address }} {{ host.probe_type.value | upper }}{% if host.probe_type.value == 'tcp' %}:{{ host.probe_port }}{% endif %} {% if not host.ping_enabled %} off {% elif ping is none %} {% elif ping.status.value == 'up' %} {% else %} {% endif %} {% if ping and ping.response_time_ms is not none %} {% if ping.response_time_ms < 10 %} {{ ping.response_time_ms | round(1) }} ms {% elif ping.response_time_ms < 100 %} {{ ping.response_time_ms | round(1) }} ms {% else %} {{ ping.response_time_ms | round(1) }} ms {% endif %} {% else %} {% endif %} {% if not host.dns_enabled %} off {% elif dns is none %} {% elif dns.status.value == 'resolved' %} {% else %} {% endif %} {% if not host.ping_enabled %} {% elif pct is none %} {% elif pct >= 99.9 %} {{ "%.1f"|format(pct) }}% {% elif pct >= 99 %} {{ "%.1f"|format(pct) }}% {% elif pct >= 95 %} {{ "%.1f"|format(pct) }}% {% else %} {{ "%.1f"|format(pct) }}% {% endif %} Edit
{% else %}

No hosts yet. Summon one to the table.

{% endif %} {% endblock %}