{% if update %} {% import 'languages/'+lang|default('en')+'.html' as lang %} {% endif %}
{{lang.smon_page.desc.do_not_sort}} | {{lang.smon_page.desc.sort_status}} | {{lang.words.refresh|title()}} {% set down = [] %} {% set up = [] %} {% set dis = [] %} {% for s in smon %} {% if s.en == 1 %} {% if s.status == 1 and s.http_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}}
{% set group = [] %} {% set group_prev = [] %} {%- for s in smon -%} {% set checks = lang.smon_page.desc.enabled_checks +':
' + lang.phrases.port_check|title() %} {% if s.http %} {% set checks = checks + ',
' + lang.smon_page.desc.http_status_check + ': ' + s.http.split(':')[0]|string() + '://' + s.ip|string() + ':' + s.port|string() + s.http.split(':')[1]|string() %} {% endif %} {% if s.body and s.body is not none %} {% set checks = checks + ',
' + lang.smon_page.desc.body_status_check + ':' + s.body %} {% endif %} {% if s.ssl_expire_date %} {% set checks = checks + ',
SSL ' + lang.words.expire + ': ' + s.ssl_expire_date %} {% endif %} {% if s.group %} {% if s.group not in group %}
{{ s.group }}
{% endif %} {% if group.append(s.group) %} {% endif %} {% else %}
None
{% endif %} {% if s.en == 1 %} {% if s.status == 1 and s.http_status == 1 and s.body_status == 1 %}
{% if s.ip|string|length > 23 %} {% elif s.ip|string|length > 20 %} {% elif s.ip|string|length > 17 %} {% else %} {% endif %} {{s.ip}}:{{s.port}}
{% if s.desc is not none %} {{s.desc}} {% else %} {{lang.words.desc|title()}}: None {% endif %}
{% if s.en == 1 %} {% if s.status == 1 and s.http_status == 1 and s.body_status == 1 %} {{lang.words.uptime}}: {% elif s.status == 0 or s.http_status == 0 or s.body_status == 0 %} {{lang.words.downtime}}: {% else %} {{lang.words.uptime}}: N/A {% endif %} {% else %} {{lang.words.uptime}}: N/A {% endif %}
{% if s.en == 1 %} {% if s.status == 1 %} {{lang.smon_page.desc.resp_time}}: {% else %} {{lang.smon_page.desc.last_resp_time}}: {% endif %} {% if s.responce_time %} {{s.responce_time|truncate(9)}} ms {% else %} N/A {% endif %} {% else %} N/A {% endif %}
{% if s.en == 1 %} {% if s.status == 1 and s.http_status == 1 and s.body_status == 1 %}
{{lang.smon_page.desc.UP}}
{% elif s.http_status == 0 %}
{{lang.smon_page.desc.HTTP_FAILURE}}
{% elif s.body_status == 0 %}
{{lang.smon_page.desc.BODY_FAILURE}}
{% elif s.status == 3 %}
{{lang.smon_page.desc.UNKNOWN}}
{% else %}
{{lang.smon_page.desc.PORT_DOWN}}
{% endif %} {% else %}
{{lang.words.disabled|title()}}
{% endif %}
{% endfor %}