{% extends "base.html" %} {% block content %} {% from 'include/input_macros.html' import input, checkbox, select, copy_to_clipboard %} {% if servers|length == 0 %} {% include 'include/getstarted.html' %} {% endif %}
{% for s in servers %} {% if serv %} {% endif %} {% if service == 'nginx' %} {% set checker_desc = 'Checker monitors Nginx services. If Nginx service is down, Checker will alert via Telegram and/or Slack' %} {% set is_auto_start_enabled = s.8.0.17 %} {% set is_checker_enabled = s.8.0.19 %} {% set is_metrics_enabled = s.8.0.21 %} {% set action_service = 'nginx' %} {% if s.5.0.1 == 'active' %} {% set additional_status_class = 'div-server-head-up' %} {% else %} {% set additional_status_class = 'div-server-head-down' %} {% endif %} {% elif service == 'keepalived' %} {% set action_service = 'keepalived' %} {% if s.5.0.1 == 'active' %} {% set additional_status_class = 'div-server-head-up' %} {% else %} {% set additional_status_class = 'div-server-head-down' %} {% endif %} {% elif service == 'haproxy' %} {% set checker_desc = 'Checker monitors HAProxy services, its backends and maxconn. If some backend or HAProxy service is down, Checker will alert via Telegram and/or Slack' %} {% set is_auto_start_enabled = s.8.0.12 %} {% set is_checker_enabled = s.8.0.8 %} {% set is_metrics_enabled = s.8.0.9 %} {% set action_service = 'hap' %} {% if s.5 != False %} {% set additional_status_class = 'div-server-head-up' %} {% else %} {% set additional_status_class = 'div-server-head-down' %} {% endif %} {% endif %}
{% if service == 'nginx' or service == 'keepalived' %} {% if s.5.0.1 == 'active' %} {% else %} {% endif %} {% else %} {% if s.5 != False %} {% else %} {% endif %} {% endif %} {% if not serv %} {{s.1}} {% else %} {{s.1}} {% endif %} {% if s.6|int() >= 1 and service != 'keepalived' %} = 1 %} class="shield green" title="Autostart is enabled"> {% else %} class="shield red" title="Autostart is enabled, but Keep alive service is not running"> {% endif %} {% endif %} {% if s.8.0.20 == 1 %} {% endif %} {% for set in service_settings %} {% if set.server_id == s.0 and set.setting == 'dockerized' and set.value == '1' %} {% endif %} {% endfor %} {% if role <= 2 %} {% if service != 'keepalived' %} {% endif %} {% endif %}
{% if s.3 is none %} No description {% else %} {{s.3}} {% endif %}
{% if service == 'nginx' or service == 'keepalived' %} Version: {{s.5.0.0}} Process_num: {{s.5.0.3}}
{% if s.5.0.1 == 'active' %} Started: {% else %} Stopped: {% endif %} {{s.5.0.2}} {% else %} {% if s.5.0 is defined %} {{s.5.0.0}} {{s.5.0.1}}
{{s.5.0.2}} {% else %} Cannot get information about HAProxy {% endif %} {% endif %} Last edit:
IP: {{ copy_to_clipboard(value=s.2, style='font-weight: bold') }} {% if s.7.0.0 != None %} Master for: {{ copy_to_clipboard(value=s.7.0.1, style='font-weight: bold') }} {% endif %} {% if s.9.0 == '1' %} VRRP: {% if s.9.1 == 'MASTER' or s.9.1 == 'BACKUP' or s.9.1 == 'INIT' or s.9.1 == 'FAULT' %} {{s.9.1}} {% else %} Error {% endif %} {% endif %}
{% if serv %}
{% if service == 'haproxy' %} Backends: {% elif service == 'keepalived' %} VRRP addresses: {% else %} Virtual hosts: {% endif %}
{% endif %} {% endfor %}
{% if serv %}
Time range:
{% for s in servers %} {% if service == 'haproxy' %}
{% endif %}
{% endfor %} {% endif %} {% endblock %}