{% extends "base.html" %} {% from 'include/input_macros.html' import input, checkbox, select %} {% block title %}{{ lang.menu_links.history.title }} {{ smon_name|replace("'","") }}{% endblock %} {% block h2 %}{{ lang.menu_links.history.title }} {{ smon_name|replace("'","") }}{% endblock %} {% block content %} {% set checking_types = {'1': 'TCP', '2': 'HTTP', '3': 'SMTP', '4': 'Ping', '5': 'DNS', '6': 'RabbitMQ'} %} {% if user_subscription['user_status'] == 0 or user_subscription['user_plan'] == 'home' %} {% include 'include/no_sub.html' %} {% else %}
{% for s in smon %}
{% if check_type_id == 2 %} {{s.url}} {% elif check_type_id == 1 %} {{s.ip}}:{{s.port}} {% elif check_type_id == 5 %} {{s.ip}} {{lang.phrases.resource_record_type}}: {{s.record_type|upper()}} {% else %} {{s.ip}} {% endif %}
{% for check in all_checks %} {% if check.country_id %} {{ lang.words.country|title() }} {{ check.country_id.name }} {% endif %} {% if check.region_id %} {{ lang.words.region|title() }} {{ check.region_id.name }} {% endif %} {% if check.agent_id %} {{ lang.words.agent|title() }} {{ check.agent_id.name }}: {% endif %}
{% endfor %}
{{lang.words.checking|title()}} {{lang.words.every}} {{s.interval}} {{lang.words.seconds2}}, {{ lang.words.created_at }}: {{ s.smon_id.created_at|strftime }}, {{ lang.words.updated_at }}: {{ s.smon_id.updated_at|strftime }}
{% for check in all_checks %}
{% endfor %}

{{lang.words.checking|title()}}

({{lang.words.type|title()}})

{{checking_types[check_type_id|string()]}}
{% if check_type_id == 2 %}

{{lang.words.method|title()}}

HTTP

{{s.method.upper()}}
{% endif %} {% if check_type_id == 5 %}

Resolver

DNS {{ lang.words.server }}

{{s.resolver}}
{% endif %}

{{lang.words.response|title()}}

({{lang.words.current|title()}})

{{last_resp_time}}ms

{{lang.words.average2|title()}} {{lang.words.response}}

(24-{{lang.words.hours}})

{{avg_res_time}}ms

{{lang.words.uptime}}

(24-{{lang.words.hours}})

{{uptime}}%

{{lang.words.cert_expire}}

{% if s.smon_id.ssl_expire_date is not none %} {% set ssl_date = s.smon_id.ssl_expire_date.split()[0] %} {% else %} {% set ssl_date = 'N/A' %} {% endif %}

({{ssl_date}})

{{cert_day_diff}} {{lang.words.days}}
{% endfor %}
{% for check in all_checks %}
{% if check.country_id %} {{ lang.words.country|title() }} {{ check.country_id.name }} {% endif %} {% if check.region_id %} {{ lang.words.region|title() }} {{ check.region_id.name }} {% endif %} {% if check.agent_id %} {{ lang.words.agent|title() }} {{ check.agent_id.name }} {% endif %}
{% endfor %} {% endif %} {# {% include 'ajax/alerts_history.html' %}#} {% include 'include/smon/add_form.html' %}
{% endblock %}