Sample template for custom HTML report

Header


<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta name="GENERATOR" content="KS-Soft HostMonitor">
<title>HostMonitor report</title>
<STYLE TYPE="text/css">
 a:hover { color: #0000FF }  a:visited { color: #0000FF }  a:active { color:#0000FF }  a:link { color:#0000FF }
 th { text-align:center; font-weight:bolder; white-space:nowrap; background-color:#0000FF; color:#FFFFFF }
 th.L1 { text-align:left }
 td { text-align:center; vertical-align: top; white-space:nowrap; padding-left:0.2em; padding-right:0.2em }
 td.L1 { text-align:left }
 td.W1 { white-space:normal }
 body { background-color:#E9E9E9; color:#000000 }
</STYLE> </head>
<body>
<span style="text-align:left; font-size:150%; font-weight:bold"><u>HostMonitor Report</u></span><br>
<span style="font-size:120%">Generated on %Date% at %Time%</span><br>
Time zone: %TimeZone%<br><br>
<table style="border:none; width:100%">
 <thead><tr>
  <th class="L1">Test name</th>
  <th>Status</th>
  <th>Recurrences</th>
  <th>Reply</th>
  <th>Alive %</th>
  <th>Dead %</th>
  <th>Total tests</th>
  <th>Passed tests</th>
  <th>Failed tests</th>
  <th>Average reply</th>
  <th>Min reply</th>
  <th>Max reply</th>
 </tr></thead>

Folder title


<tr style="background-color: %Background%; color: %ItemColor%">
  <td class="L1" colspan=12><b>Folder: %Folder%\ </b></td>
</tr>

Test items


<tr style="background-color: %Background%; color: %ItemColor%">
 <td class="L1">%TestName%</td>
 <td>%Status%</td>
 <td>%Recurrences%</td>
 <td class="W1">%Reply%</td>
 <td>%AliveRatio%</td>
 <td>%DeadRatio%</td>
 <td>%TotalTests%</td>
 <td>%PassedCnt%</td>
 <td>%FailedCnt%</td>
 <td>%AverageReply%</td>
 <td>%MinReply%</td>
 <td>%MaxReply%</td>
</tr>

Folder summary


<tr><td class="L1" colspan=1 style="background-color:#F5F580; color: %ItemColor%">
  <b>Folder's summary</b> <br>
  Average Alive %<br>
  Average Dead % <br>
  Average Unknown % <br>
  Average Reply <br>
  Min Reply <br>
  Max Reply <br>
</td> 
<td class="L1" colspan=11 style="background-color:#FFFF80; color: %ItemColor%">
  %FullPath%<br>
  %FolderAverage_AliveRatio% <br>
  %FolderAverage_DeadRatio% <br>
  %FolderAverage_UnknownRatio% <br>
  %FolderAverage_AverageReply% <br>
  %FolderMin_MinReply% <br>
  %FolderMax_MaxReply% <br>
</td></tr>

Gap between folders


<tr style="line-height: 0.5em"><td colspan=12> </td></tr>

Footer


</table>
<hr>
<br>
<table style="border:none">
 <tr><td class="L1"> Tests with "Good" status</td><td class="L1">%GoodTests%</td></tr>
 <tr><td class="L1"> Tests with "Bad" status</td><td class="L1">%BadTests%</td></tr>
 <tr><td class="L1"> Tests with "Unknown" status  </td><td class="L1">%UnknownTests%</td></tr>
</table><br>
 
<p>This report was generated by <a href="http://www.ks-soft.net" target="_blank"><strong>KS-Soft</strong></a><b>
<a href="http://www.ks-soft.net/hostmon.eng/index.htm" target="_blank">HostMonitor</a></b></p>
</body>
</html>