{% with check.get_status as status %}
{% if status == "new" %}
NEW |
{% elif status == "paused" %}
PAUSED |
{% elif status == "grace" %}
LATE |
{% elif status == "up" %}
UP |
{% elif status == "down" %}
DOWN |
{% endif %}
{% endwith %}
|
{% if check.name %}
{{ check.name|mangle_link }}
{% else %}
unnamed
{% endif %}
{% if check.tags %}
{% for tag in check.tags_list %}
|
{% endfor %}
{% endif %}
|
{% for d in check.past_downtimes %}
{% if d.count %}
{{ d.count }} downtime{{ d.count|pluralize }},
{{ d.duration|hc_approx_duration }} total
|
{% else %}
{% if d.no_data %}
{% comment %} The check didn't exist yet {% endcomment %}
{% else %}
All good!
{% endif %}
|
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}