{% extends "base.html" %} {% load url from future %} {% load adagiostags %} {% load i18n %} {% block title %}{% trans "Dashboard" %}{% endblock %} {% block header %} {{ block.super }} {% endblock %} {% block toolbar %}{% endblock %} {% block page_header %}{% endblock %} {% block page_footer %}{% endblock %} {% block left_sidebar %}{% endblock %} {% block page_content %}

{% trans "Current Health" %}

{% trans "All hosts" %}
{{ host_totals_percent.0|floatformat }}%
{% trans "All services" %}
{{ service_totals_percent.0|floatformat }}%
{% if host_problems %}

{% trans "Unhandled Host Problems" %}

{% include "snippets/status_hostlist_snippet.html" with hosts=host_problems%} {% else %}

{% trans "There are no unhandled host problems." %}

{% endif %}
{% if service_problems%}

{% trans "Unhandled Service Problems" %}

{% for i in service_problems %} {% if i.state == 0 %}{% endif %} {% if i.state == 1 %}{% endif %} {% if i.state == 2 %}{% endif %} {% if i.state == 3 %}{% endif %} {% endfor %}
{% trans "Host" %} {% trans "Service" %} {% trans "Output" %} {% trans "Duration" %} {% trans "Last Check" %}
{{ i.host_name }} {{ i.description }} {{ i.plugin_output|slice:"70" }} {{ i.last_state_change|timestamp|timesince }} {{ i.last_check|timestamp|date:'Y-m-d H:i' }}
{% else %}

{% trans "There are no unhandled service problems" %}

{% endif %}
{% endblock %} {% block footer %} {{ block.super }} {% endblock footer %}