|
@ -47,28 +47,55 @@ |
|
|
<b>Schedule</b><br> |
|
|
<b>Schedule</b><br> |
|
|
<code>{{ check.schedule }}</code> |
|
|
<code>{{ check.schedule }}</code> |
|
|
</td> |
|
|
</td> |
|
|
{% if trttr %}Yo!{% endif %} |
|
|
|
|
|
{{ trtr|safe }} {% cycle trtr %} |
|
|
{{ trtr|safe }} {% cycle trtr %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if ping %} |
|
|
|
|
|
|
|
|
<td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;"> |
|
|
|
|
|
<b>Total Pings</b><br> |
|
|
|
|
|
{{ check.n_pings }} |
|
|
|
|
|
{% if check.created %}(since {{ check.created|date:'M j, Y' }}){% endif %} |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
|
|
{% if ping %} |
|
|
|
|
|
<tr> |
|
|
<td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;"> |
|
|
<td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;"> |
|
|
<b>Last Ping</b><br> |
|
|
<b>Last Ping</b><br> |
|
|
{{ ping.created|naturaltime }}{% if ping.remote_addr %}, from {{ ping.remote_addr }}{% endif %} |
|
|
{{ ping.created|naturaltime }}{% if ping.remote_addr %}, from {{ ping.remote_addr }}{% endif %} |
|
|
</td> |
|
|
</td> |
|
|
{% if trttr %}Yo!{% endif %} |
|
|
|
|
|
{{ trtr|safe }} {% cycle trtr %} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
<td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;"> |
|
|
<td style="padding-right: 32px; padding-bottom: 8px; vertical-align: top;"> |
|
|
<b>Total Pings</b><br> |
|
|
|
|
|
{{ check.n_pings }} |
|
|
|
|
|
{% if check.created %}(since {{ check.created|date:'M j, Y' }}){% endif %} |
|
|
|
|
|
|
|
|
<b>Last Ping Type</b><br> |
|
|
|
|
|
{% if ping.exitstatus > 0 %} |
|
|
|
|
|
<span style="background-color: #f2dede; color: #333333; padding-left: 4px; padding-right: 4px; border-radius: 2px;"> |
|
|
|
|
|
Exit status {{ ping.exitstatus }} |
|
|
|
|
|
</span> |
|
|
|
|
|
{% elif ping.exitstatus == 0 %} |
|
|
|
|
|
<span style="background-color: #dff0d8; color: #333333; padding-left: 4px; padding-right: 4px; border-radius: 2px;"> |
|
|
|
|
|
Exit status 0 |
|
|
|
|
|
</span> |
|
|
|
|
|
{% elif ping.kind == "fail" %} |
|
|
|
|
|
<span style="background-color: #f2dede; color: #333333; padding-left: 4px; padding-right: 4px; border-radius: 2px;"> |
|
|
|
|
|
Failure |
|
|
|
|
|
</span> |
|
|
|
|
|
{% elif ping.kind == "start" %} |
|
|
|
|
|
<span style="background-color: #dff0d8; color: #333333; padding-left: 4px; padding-right: 4px; border-radius: 2px;"> |
|
|
|
|
|
Started |
|
|
|
|
|
</span> |
|
|
|
|
|
{% elif ping.kind == "ign" %} |
|
|
|
|
|
<span style="background-color: #eeeeee; color: #333333; padding-left: 4px; padding-right: 4px; border-radius: 2px;"> |
|
|
|
|
|
Ignored |
|
|
|
|
|
</span> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
<span style="background-color: #dff0d8; color: #333333; padding-left: 4px; padding-right: 4px; border-radius: 2px;"> |
|
|
|
|
|
Success |
|
|
|
|
|
</span> |
|
|
|
|
|
{% endif %} |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
{% endif %} |
|
|
</table> |
|
|
</table> |
|
|
|
|
|
|
|
|
{% if ping.body %} |
|
|
|
|
|
|
|
|
{% if ping and ping.body %} |
|
|
<p><b>Last Ping Body</b></p> |
|
|
<p><b>Last Ping Body</b></p> |
|
|
<pre>{{ ping.body|slice:":10000"|linebreaksbr }}{% if ping.body|length > 10000 %} [truncated]{% endif %}</pre> |
|
|
<pre>{{ ping.body|slice:":10000"|linebreaksbr }}{% if ping.body|length > 10000 %} [truncated]{% endif %}</pre> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|