2022-04-06 12:32:04 +00:00
|
|
|
{% for service in service_status %}
|
|
|
|
<td class="padding10 first-collumn">
|
|
|
|
<a href="/app/history.py?service=server&serv={{ 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 %}
|
2022-04-06 12:32:04 +00:00
|
|
|
<span class="serverNone server-status" title="HAProxy 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 %}
|
2022-04-06 12:32:04 +00:00
|
|
|
<span class="serverUp server-status" title="running {{ service.3 }} processes"
|
2021-08-02 08:19:22 +00:00
|
|
|
{% else %}
|
2022-04-06 12:32:04 +00:00
|
|
|
<span class="serverDown server-status" title="HAProxy is down"
|
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>
|
2020-02-05 08:15:57 +00:00
|
|
|
<td class="padding10 first-collumn">
|
|
|
|
{% if service.8|int() == 0 %}
|
2022-04-20 08:08:36 +00:00
|
|
|
<span class="serverNone server-status" title="NGINX is not installed"
|
2020-02-05 08:15:57 +00:00
|
|
|
{% else %}
|
|
|
|
{% if service.9|int() >= 1 %}
|
2022-04-20 08:08:36 +00:00
|
|
|
<span class="serverUp server-status" title="NGINX is running"
|
2020-02-05 08:15:57 +00:00
|
|
|
{% else %}
|
2022-04-20 08:08:36 +00:00
|
|
|
<span class="serverDown server-status" title="NGINX is down"
|
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>
|
2022-04-15 09:49:00 +00:00
|
|
|
<td class="padding10 first-collumn">
|
|
|
|
{% if service.11|int() == 0 %}
|
|
|
|
<span class="serverNone server-status" title="Apache is not installed"
|
|
|
|
{% else %}
|
|
|
|
{% if service.12|int() >= 1 %}
|
|
|
|
<span class="serverUp server-status" title="Apache is running"
|
|
|
|
{% else %}
|
|
|
|
<span class="serverDown server-status" title="Apache is down"
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
style="margin-left: 4px !important;" id="apache_{{service.10}}"></span>
|
|
|
|
</td>
|
2020-02-02 14:23:00 +00:00
|
|
|
<td class="padding10 first-collumn">
|
|
|
|
{% if service.6|int() == 0 %}
|
2022-04-06 12:32:04 +00:00
|
|
|
<span class="serverNone server-status" title="Keepalived is not installed" style="margin-left: 4px !important;"></span>
|
2020-02-02 14:23:00 +00:00
|
|
|
{% else %}
|
|
|
|
{% if service.7|int() >= 1 %}
|
2022-04-06 12:32:04 +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 %}
|
|
|
|
<span class="serverDown server-status" title="Keepalived is down" style="margin-left: 4px !important;"></span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2019-12-27 04:31:09 +00:00
|
|
|
<td class="third-collumn-wi">
|
|
|
|
{% if service.5.0|length() == 0 %}
|
2022-04-06 12:32:04 +00:00
|
|
|
<span class="serverNone server-status" title="WAF 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 %}
|
2020-02-02 14:23:00 +00:00
|
|
|
<span class="serverDown server-status" title="WAF is down" 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>
|
2019-12-04 13:38:07 +00:00
|
|
|
{% endfor %}
|