{% if update %} {% import 'languages/'+lang|default('en')+'.html' as lang %} {% endif %} {% set checking_types = {'tcp': '1', 'http': '2', 'ping': '4', 'dns': '5'} %}
{% set down = [] %} {% set up = [] %} {% set dis = [] %} {% for s in smon %} {% if s.en == 1 %} {% if s.status == 1 and s.body_status == 1 %} {% if up.append('1') %} {% endif %} {% else %} {% if down.append('1') %} {% endif %} {% endif %} {% else %} {% if dis.append(s.group) %} {% endif %} {% endif %} {% endfor %} {{lang.smon_page.desc.status_summary}}: {{lang.smon_page.desc.UP}}: {{up|length}}, {{lang.smon_page.desc.DOWN}}: {{down|length}}, {{lang.words.disabled|title()}}: {{dis|length}}
{{lang.smon_page.desc.do_not_sort}} | {{lang.smon_page.desc.sort_status}} | {{lang.words.refresh|title()}}
{% set group = [] %} {% set group_prev = [] %}
{%- for s in smon -%} {% if s.group not in group %}
{% if s.group %} {{ s.group }} {% else %} None {% endif %}
{% endif %} {% if group.append(s.group) %} {% endif %}
{% set check_id = checking_types[s.check_type] %} {% endfor %}