mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-06 07:21:38 +01:00
32 lines
1.3 KiB
HTML
32 lines
1.3 KiB
HTML
{% include "head.html" %}
|
|
<html>
|
|
<body>
|
|
{% include "navbar.html" %}
|
|
<div class="container">
|
|
<div class="row">
|
|
{% for status in status_list %}
|
|
<a href="/service-details?service={{ status.service}}"
|
|
class="col-md-5 m-3 p-2 border rounded overview-tile"
|
|
{% if status.status == "OK" %}
|
|
style="background-color: lightgreen;"
|
|
{% elif status.status == "WARNING" %}
|
|
style="background-color: orange;"
|
|
{% elif status.status == "CRITICAL" %}
|
|
style="background-color: #ff00005c;"
|
|
{% else %}
|
|
style="background-color: magenta;"
|
|
{% endif %}
|
|
>
|
|
<p class="w-100 font-weight-bold">{{ status.service }}</p>
|
|
{% if status.timestamp == 0 %}
|
|
Service never reported in
|
|
{% else %}
|
|
{{ datetime.fromtimestamp(status.timestamp).strftime("%H:%M %d.%m.%y") }}
|
|
{% endif %}
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|