mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-04-08 06:30:05 +00:00
58 lines
2.2 KiB
HTML
58 lines
2.2 KiB
HTML
{% load hc_extras humanize linemode %}{% linemode %}
|
|
{% if check.status == "down" %}
|
|
{% line %}The check <b>{{ check.name_then_code }}</b> is <b>DOWN</b>.{% endline %}
|
|
{% else %}
|
|
{% line %}The check <b>{{ check.name_then_code }}</b> is now <b>UP</b>.{% endline %}
|
|
{% endif %}
|
|
|
|
{% line %}{% endline %}
|
|
|
|
{% if check.project.name %}
|
|
{% line %}<b>Project:</b> {{ check.project.name }}{% endline %}
|
|
{% endif %}
|
|
|
|
{% if check.tags_list %}
|
|
{% line %}<b>Tags:</b> {{ check.tags_list|join:", " }}{% endline %}
|
|
{% endif %}
|
|
|
|
{% if check.kind == "simple" %}
|
|
{% line %}<b>Period:</b> {{ check.timeout|hc_duration }}{% endline %}
|
|
{% endif %}
|
|
|
|
{% if check.kind == "cron" %}
|
|
{% line %}<b>Schedule:</b> <code>{{ check.schedule }}</code>{% endline %}
|
|
{% line %}<b>Time Zone:</b> {{ check.tz }}{% endline %}
|
|
{% endif %}
|
|
|
|
{% line %}<b>Total Pings:</b> {{ check.n_pings }}{% endline %}
|
|
|
|
{% if ping is None %}
|
|
{% line %}<b>Last Ping:</b> Never{% endline %}
|
|
{% elif ping.kind == "ign" %}
|
|
{% line %}<b>Last Ping:</b> Ignored, {{ ping.created|naturaltime }}{% endline %}
|
|
{% elif ping.kind == "fail" or ping.exitstatus > 0 %}
|
|
{% line %}<b>Last Ping:</b> Failure, {{ ping.created|naturaltime }}{% endline %}
|
|
{% elif ping.kind == "start" %}
|
|
{% line %}<b>Last Ping:</b> Start, {{ ping.created|naturaltime }}{% endline %}
|
|
{% elif ping.kind == "log" %}
|
|
{% line %}<b>Last Ping:</b> Log, {{ ping.created|naturaltime }}{% endline %}
|
|
{% else %}
|
|
{% line %}<b>Last Ping:</b> Success, {{ ping.created|naturaltime }}{% endline %}
|
|
{% endif %}
|
|
|
|
{% if down_checks is not None %}
|
|
{% line %}{% endline %}
|
|
{% if down_checks %}
|
|
{% if down_checks|length > 10 %}
|
|
{% line %}{{ down_checks|length }} other checks are {% if check.status == "down" %}also{% else %}still{% endif %} down.{% endline %}
|
|
{% else %}
|
|
{% line %}The following checks are {% if check.status == "down" %}also{% else %}still{% endif %} down:{% endline %}
|
|
{% for c in down_checks %}
|
|
{% line %}• <b>{{ c.name_then_code|safe }}</b> (last ping: {{ c.last_ping|naturaltime }}){% endline %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% else %}
|
|
{% line %}All the other checks are up.{% endline %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endlinemode %}
|