{% from 'include/input_macros.html' import input, select, checkbox %} {% if user_status == 0 %} {% include 'include/no_sub.html' %} {% else %} {% for s in services %} {% if s.0 == 'roxy-wi-checker' %} {% if s.3 == '* is not installed' and s.3 == '' %}

You have not installed Backends checker Read hear how to install Checker service

{% else %}
{% if page != "servers.py" %} {% endif %} {% for telegram in telegrams %} {% if page != "servers.py" %} {% endif %} {% endfor %}

Telegram channels

Token Channel nameGroup
{% set id = 'telegram-token-' + telegram.id|string() %} {{ input(id, value=telegram.token, size='30') }} {% set id = 'telegram-chanel-' + telegram.id|string() %} {{ input(id, value=telegram.chanel_name, size='30') }}

+ Add

{% if page != "servers.py" %} {% endif %} {% for slack in slacks %} {% if page != "servers.py" %} {% endif %} {% endfor %}

Slack channels

Token Channel nameGroup
{% set id = 'slack-token-' + slack.id|string() %} {{ input(id, value=slack.token, size='30') }} {% set id = 'slack-chanel-' + slack.id|string() %} {{ input(id, value=slack.chanel_name, size='30') }}

+ Add

Test messages

Email Web panel


You can read the description of all parameters here, How to create and use Telegram bot in this article, How to create and use Slack APP in this article
{% for s in haproxy_servers %} {% for h in haproxy_settings %} {% if h.server_id|string() == s.0|string() and h.service_id == 1 %} {% endif %} {% endfor %} {% endfor %}

HAProxy servers

Server Telegram Slack Email Service Backend Maxconn
{{s.1}} {% set id = 'haproxy_server_email-' + h.id|string() %} {% if h.email == 1 %} {{ checkbox(id, checked='checked') }} {% else %} {{ checkbox(id) }} {% endif %} {% set id = 'haproxy_server_status-' + h.id|string() %} {% if h.service_alert == 1 %} {{ checkbox(id, checked='checked', title='Alert about changing service status') }} {% else %} {{ checkbox(id, title='Alert about changing service status') }} {% endif %} {% set id = 'haproxy_server_backend-' + h.id|string() %} {% if h.backend_alert == 1 %} {{ checkbox(id, checked='checked', title='Alert about changing backend status') }} {% else %} {{ checkbox(id, title='Alert about changing backend status') }} {% endif %} {% set id = 'haproxy_server_maxconn-' + h.id|string() %} {% if h.maxconn_alert == 1 %} {{ checkbox(id, checked='checked', title='Alert if the number of connections is about to reach the limit') }} {% else %} {{ checkbox(id, title='Alert if the number of connections is about to reach the limit') }} {% endif %}
{% for s in nginx_servers %} {% for h in nginx_settings %} {% if h.server_id|string() == s.0|string() and h.service_id == 2 %} {% endif %} {% endfor %} {% endfor %}

NGINX servers

Server Telegram Slack Email Service
{{s.1}} {% set id = 'nginx_server_email-' + h.id|string() %} {% if h.email == 1 %} {{ checkbox(id, checked='checked', title='Alert via email') }} {% else %} {{ checkbox(id, title='Alert via email') }} {% endif %} {% set id = 'nginx_server_status-' + h.id|string() %} {% if h.service_alert == 1 %} {{ checkbox(id, checked='checked', title='Alert about changing service status') }} {% else %} {{ checkbox(id, title='Alert about changing service status') }} {% endif %}
{% for s in apache_servers %} {% for h in apache_settings %} {% if h.server_id|string() == s.0|string() and h.service_id == 4 %} {% endif %} {% endfor %} {% endfor %}

Apache servers

Server Telegram Slack Email Service
{{s.1}} {% set id = 'apache_server_email-' + h.id|string() %} {% if h.email == 1 %} {{ checkbox(id, checked='checked', title='Alert via email') }} {% else %} {{ checkbox(id, title='Alert via email') }} {% endif %} {% set id = 'apache_server_status-' + h.id|string() %} {% if h.service_alert == 1 %} {{ checkbox(id, checked='checked', title='Alert about changing service status') }} {% else %} {{ checkbox(id, title='Alert about changing service status') }} {% endif %}
{% for s in keepalived_servers %} {% for h in keepalived_settings %} {% if h.server_id|string() == s.0|string() and h.service_id == 3 %} {% endif %} {% endfor %} {% endfor %}

Keepalived servers

Server Telegram Slack Email Service Status
{{s.1}} {% set id = 'keepalived_server_email-' + h.id|string() %} {% if h.email == 1 %} {{ checkbox(id, checked='checked', title='Alert via email') }} {% else %} {{ checkbox(id, title='Alert via email') }} {% endif %} {% set id = 'keepalived_server_status-' + h.id|string() %} {% if h.service_alert == 1 %} {{ checkbox(id, checked='checked', title='Alert about changing service status') }} {% else %} {{ checkbox(id, title='Alert about changing service status') }} {% endif %} {% set id = 'keepalived_server_backend-' + h.id|string() %} {% if h.backend_alert == 1 %} {{ checkbox(id, checked='checked', title='Alert about changing Master/Backup status') }} {% else %} {{ checkbox(id, title='Alert about changing Master/Backup status') }} {% endif %}
{% endif %} {% endif %} {% endfor %} {% endif %}