2023-04-02 16:58:55 +00:00
|
|
|
{% import 'languages/'+lang|default('en')+'.html' as lang %}
|
2022-04-06 12:32:04 +00:00
|
|
|
{% for service in service_status %}
|
|
|
|
<td class="padding10 first-collumn">
|
2023-09-17 09:42:39 +00:00
|
|
|
<a href="/app/history/server/{{ service.1 }}" title="{{service.0 }} history" class="logs_link">
|
2019-12-27 04:31:09 +00:00
|
|
|
{{ service.0 }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
2021-08-02 08:19:22 +00:00
|
|
|
{% if service.2|int() == 0 %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverNone server-status" title="HAProxy {{lang.phrases.is_not_installed}}"
|
2019-12-27 04:31:09 +00:00
|
|
|
{% else %}
|
2021-08-02 08:19:22 +00:00
|
|
|
{% if service.3|int() >= 1 %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverUp server-status" title="{{lang.words.running2|title()}} {{ service.3 }} {{lang.words.processes}}"
|
2021-08-02 08:19:22 +00:00
|
|
|
{% else %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverDown server-status" title="HAProxy {{lang.words.stopped}}"
|
2021-08-02 08:19:22 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2022-04-06 12:32:04 +00:00
|
|
|
style="margin-left: 25px !important;" id="haproxy_{{service.10}}"></span>
|
2019-12-27 04:31:09 +00:00
|
|
|
</td>
|
2023-04-02 16:58:55 +00:00
|
|
|
<td class="padding10 first-collumn" style="padding-left: 20px">
|
2020-02-05 08:15:57 +00:00
|
|
|
{% if service.8|int() == 0 %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverNone server-status" title="NGINX {{lang.phrases.is_not_installed}}"
|
2020-02-05 08:15:57 +00:00
|
|
|
{% else %}
|
|
|
|
{% if service.9|int() >= 1 %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverUp server-status" title="NGINX {{lang.words.running}}"
|
2020-02-05 08:15:57 +00:00
|
|
|
{% else %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverDown server-status" title="NGINX {{lang.words.stopped}}"
|
2020-02-05 08:15:57 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2022-04-06 12:32:04 +00:00
|
|
|
style="margin-left: 4px !important;" id="nginx_{{service.10}}"></span>
|
2020-02-05 08:15:57 +00:00
|
|
|
</td>
|
2023-04-02 16:58:55 +00:00
|
|
|
<td class="padding10 first-collumn" style="padding-left: 20px">
|
2022-04-15 09:49:00 +00:00
|
|
|
{% if service.11|int() == 0 %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverNone server-status" title="Apache {{lang.phrases.is_not_installed}}"
|
2022-04-15 09:49:00 +00:00
|
|
|
{% else %}
|
|
|
|
{% if service.12|int() >= 1 %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverUp server-status" title="Apache {{lang.words.running}}"
|
2022-04-15 09:49:00 +00:00
|
|
|
{% else %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverDown server-status" title="Apache {{lang.words.stopped}}"
|
2022-04-15 09:49:00 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
style="margin-left: 4px !important;" id="apache_{{service.10}}"></span>
|
|
|
|
</td>
|
2023-04-02 16:58:55 +00:00
|
|
|
<td class="padding10 first-collumn" style="padding-left: 35px">
|
2020-02-02 14:23:00 +00:00
|
|
|
{% if service.6|int() == 0 %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverNone server-status" title="Keepalived {{lang.phrases.is_not_installed}}" style="margin-left: 4px !important;"></span>
|
2020-02-02 14:23:00 +00:00
|
|
|
{% else %}
|
|
|
|
{% if service.7|int() >= 1 %}
|
2022-05-03 07:55:16 +00:00
|
|
|
<span class="serverUp server-status" title="running {{service.7 }} processes" style="margin-left: 4px !important;"></span>
|
2020-02-02 14:23:00 +00:00
|
|
|
{% else %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverDown server-status" title="Keepalived {{lang.words.stopped}}" style="margin-left: 4px !important;"></span>
|
2020-02-02 14:23:00 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2023-04-02 16:58:55 +00:00
|
|
|
<td class="third-collumn-wi" style="padding-left: 15px">
|
2019-12-27 04:31:09 +00:00
|
|
|
{% if service.5.0|length() == 0 %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverNone server-status" title="WAF {{lang.phrases.is_not_installed}}" style="margin-left: 4px !important;"></span>
|
2019-12-27 04:31:09 +00:00
|
|
|
{% elif service.5.0 != '' and service.4|int() == 0 %}
|
2023-04-02 16:58:55 +00:00
|
|
|
<span class="serverDown server-status" title="WAF {{lang.words.stopped}}" style="margin-left: 4px !important;"></span>
|
2019-12-27 04:31:09 +00:00
|
|
|
{% elif service.5.0 != '' and service.4|int() >= 1 %}
|
2021-08-02 08:19:22 +00:00
|
|
|
<span class="serverUp server-status" title="running {{ service.4 }} processes" style="margin-left: 4px !important;"></span>
|
2019-12-27 04:31:09 +00:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
2022-04-06 12:32:04 +00:00
|
|
|
<td></td>
|
2022-05-03 07:55:16 +00:00
|
|
|
<script>
|
|
|
|
{% if service.2|int() >= 1 %}
|
|
|
|
setInterval(check_service_status, 11000, '{{service.10}}', '{{service.1}}', 'haproxy');
|
|
|
|
{% endif %}
|
|
|
|
{% if service.8|int() >= 1 %}
|
|
|
|
setInterval(check_service_status, 12000, '{{service.10}}', '{{service.1}}', 'nginx');
|
|
|
|
{% endif %}
|
|
|
|
{% if service.11|int() >= 1 %}
|
|
|
|
setInterval(check_service_status, 13000, '{{service.10}}', '{{service.1}}', 'apache');
|
|
|
|
{% endif %}
|
|
|
|
</script>
|
2019-12-04 13:38:07 +00:00
|
|
|
{% endfor %}
|