{% load url from future %} {% load adagiostags %} {% load i18n %} {% for row in hosts %} {% if row.last_check == 0 %} {% else %} {% if row.state == 0 %} {% else %} {% if row.state == 3 %} {% else %} {% endif %} {% endif %} {% endif %} {% for i in row.services_with_info %} {% endfor %} {% endfor %}
{% trans "Host Name" %} {% trans "Address" %} {% trans "Duration" %} {% trans "Last Check" %} {% trans "Host Status" %} {% trans "Service Status" %}
{{ row.name }} {{ row.address }} {% if row.last_state_change != 0 %} {{ row.last_state_change|timestamp|timesince }} {% endif %} {% if row.last_check != 0 %} {{ row.last_check|timestamp|timesince }} ago {% else %} never {% endif %} {% trans "Pending" %}{% trans "Host UP" %}{% trans "Pending" %}{% if row.childs %}{% trans "Network outage" %} {% else %}{% trans "Host Down" %} {% endif %}
{{i.0 }} - {{ i.3 }}
{% if hosts|length == settings.livestatus_limit %} {% blocktrans with length=hosts|length %}Results limited to {{ length }} hosts{% endblocktrans %} {% blocktrans %}See all{% endblocktrans %} {% else %} {% blocktrans with length=hosts|length %}{{ length }} hosts found.{% endblocktrans %} {% endif %}