{% include 'header.twig' %}
{{T_.statdif1}}
{% for check in checks %}
{% if check.ID_G != beforegroup %}
{{T_.name}}
{{T_.status}}
{{T_.last_check}}
{{T_.last_err}}
{% endif %}
{% set beforegroup = check.ID_G %}
{{check.nameGroup}}
{% endfor %}
{{check.name}}
{# "Switch" type #}
{% if check.ID_TC == 1 or check.ID_TC == 2 or check.ID_TC == 4 %} {# Ping, HttpCode, SQL DB #}
{#IF/SWITCH status text#}
{%if check.status == 0%}
{{T_.status_right}}
{%elseif check.status == 1%}
{{T_.status_lproblems}}
{%elseif check.status == 2%}
{{T_.status_problems}}
{%elseif check.status == 3%}
{{T_.status_outofserv}}
{%elseif check.status == 4%}
{{T_.status_maintenance}}
{%else%}
{{T_.status_empty}}
{%endif%}
{#END IF/SWITCH#}
{% if check.status is defined %}{#Only if records exists#}
{{check.dateLastChk}} -
{% if check.failedLastChk == 0 %}
{{T_.status_right}}
{% else %}
{{T_.failed}}
{% endif %}
{%else%}
Dame tiempo para recopilar estadísticas
{%endif%}
{%if check.dateLastErr is not null%}
{{check.dateLastErr}}
{%else%}
{{T_.no_errs}}
{%endif%}
{% endif %}
{% if check.ID_TC == 3 %}
{% endif %}
{# Fin Switch #}