2012-01-10 07:28:04 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Site health: $Status</title>
|
|
|
|
<style>
|
|
|
|
* {
|
|
|
|
font-family: Helvetica, Arial;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
.subtext {
|
|
|
|
margin-top: -10px;
|
|
|
|
font-size: 10px;
|
|
|
|
}
|
2017-01-04 23:16:12 +01:00
|
|
|
|
2012-01-10 07:28:04 +01:00
|
|
|
h1 {
|
|
|
|
font-size: 30px;
|
2013-06-21 05:36:45 +02:00
|
|
|
margin-bottom: 3px;
|
2012-01-10 07:28:04 +01:00
|
|
|
margin-left: 8px;
|
|
|
|
}
|
2013-06-21 05:36:45 +02:00
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 16px;
|
|
|
|
margin: 2px 0 10px 8px;
|
|
|
|
}
|
2017-01-04 23:16:12 +01:00
|
|
|
|
2012-01-10 07:28:04 +01:00
|
|
|
p {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
2017-01-04 23:16:12 +01:00
|
|
|
|
2012-01-10 07:28:04 +01:00
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
}
|
|
|
|
table th {
|
|
|
|
color: white;
|
|
|
|
background-color: #777;
|
|
|
|
/*border: 1px #aaa solid;*/
|
|
|
|
padding: 10px;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
table td {
|
|
|
|
background-color: #eee;
|
|
|
|
/*border: 1px #ddd solid;*/
|
|
|
|
padding: 5px 10px;
|
|
|
|
}
|
|
|
|
table tr:nth-child(odd) td {
|
|
|
|
background-color: #ddd;
|
|
|
|
}
|
2017-01-04 23:16:12 +01:00
|
|
|
|
2012-01-10 07:28:04 +01:00
|
|
|
.OK {
|
|
|
|
color: green;
|
|
|
|
}
|
|
|
|
.WARNING {
|
|
|
|
color: orange;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.ERROR {
|
|
|
|
color: red;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
2017-01-04 23:16:12 +01:00
|
|
|
|
2012-01-10 07:28:04 +01:00
|
|
|
<body>
|
|
|
|
<h1 class="$Status">$Title: $Status</h1>
|
2013-06-21 05:36:45 +02:00
|
|
|
<h2 class="website">Site: $URL</h2>
|
2017-01-04 23:16:12 +01:00
|
|
|
|
2012-01-10 07:28:04 +01:00
|
|
|
<table>
|
|
|
|
<tr><th>Check</th> <th>Status</th> <th>Message</th></tr>
|
2017-01-04 23:16:12 +01:00
|
|
|
<% loop $Details %>
|
2012-01-10 07:28:04 +01:00
|
|
|
<tr><td>$Check</td> <td class="$Status">$Status</td> <td>$Message.XML</td></tr>
|
2013-12-02 03:18:39 +01:00
|
|
|
<% end_loop %>
|
2012-01-10 07:28:04 +01:00
|
|
|
</table>
|
|
|
|
|
2017-01-04 23:16:12 +01:00
|
|
|
<% if $ShouldPass %>
|
2012-01-10 07:28:04 +01:00
|
|
|
<p>Site is available</p>
|
|
|
|
<p class="subtext">(you may check for the presence of the text 'Site is available' rather than an HTTP $ErrorCode error on this page, if you prefer.)</p>
|
|
|
|
<% else %>
|
2017-01-04 23:16:12 +01:00
|
|
|
<% if $Name == "check" %>
|
2012-12-17 05:25:32 +01:00
|
|
|
<p><b>A subsystem of the site is unavailable, but the site remains operational</b></p>
|
|
|
|
<% else %>
|
|
|
|
<p><b>Site is not available</b></p>
|
|
|
|
<% end_if %>
|
2012-01-10 07:28:04 +01:00
|
|
|
<% end_if %>
|
|
|
|
</body>
|
2013-12-02 03:18:39 +01:00
|
|
|
</html>
|