{% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% block h2 %}{{ title }}{% endblock %} {% block content %} {% from 'include/input_macros.html' import input, checkbox, select %} {% if user_status == 0 %} {% include 'include/no_sub.html' %} {% elif smon_error != '' %}

{{lang.smon_page.desc.not_installed}}

. There is no server

{{lang.words.read|title()}} {{lang.words.here}} {{lang.phrases.how_to_install}} SMON {{lang.words.service}}.

{% elif smon_status.0 == 'failed' or smon_status.0 == 'inactive' %}

{{lang.smon_page.desc.smon_is_not_run}}

There is no server

{{lang.smon_page.desc.run_smon}} {{lang.words.here}} {{lang.smon_page.desc.before_use}}

{% elif smon|length == 0 and action != 'add' and action != 'history' and action != 'checker_history' %}

{{lang.smon_page.desc.not_added}}

There is no server

{{lang.smon_page.desc.create_server}} {{lang.words.here}} {{lang.smon_page.desc.before_use}}


{% elif smon|length == 0 and action != 'add' and action == 'history' %}

{{lang.phrases.no_events_added}}

There is no server

Click {{lang.words.here}} {{lang.smon_page.desc.see_check}}


{% elif smon|length == 0 and action != 'add' and action == 'checker_history' %}

{{lang.phrases.no_events_added}} Check if there are any Checker are enabled on the "HAProxy {{lang.menu_links.hapservers.link}}" {{lang.words.or}} {{lang.words.on}} "NGINX {{lang.menu_links.hapservers.link}}" {{lang.words.or}} {{lang.words.on}} "Apache {{lang.menu_links.hapservers.link}}" {{lang.words.or}} {{lang.words.on}} "Keepalived {{lang.menu_links.hapservers.link}}" {{lang.words.pages}}


{% else %} {% if action == 'add' %} {{env}} {% for s in smon %} {% include 'include/smon_server.html' %} {% endfor %}
IP {{lang.words.port|title()}} {{lang.words.enabled|title()}} {{lang.words.protocol|title()}} URI {{lang.words.body|title()}} Telegram Slack {{lang.words.group|title()}} {{lang.words.desc|title()}}

+ {{lang.words.add|title()}}

{{lang.phrases.read_about_parameters}} {{lang.words.here}}
{% endif %} {% endblock %}