Mimic the HTML Report settings in the Custom HTML Report tab

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
doubleu
Posts: 10
Joined: Wed Jan 22, 2003 6:00 pm

Post by doubleu »

In an effort to figure out how Custom HTML reports work, I'm wondering if someone can tell me what goes under each tab in the Custom HTML tabs to make a report look just like the normal HTML report. OR, does anyone have some templates that they could share?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

to make a report look just like the normal HTML report?
Its simple:
1) leave "Folder summary" and "Gap between folders" sections empty
2) copy contents of stdFooter.html file (Examples directory) into "Footer" section
3) "Folder title" section can looks like
<tr><td colspan=4 bgcolor="%Background%" nowrap align="left"><b><font color="%ItemColor%"> Folder: %Folder% </font></b></td></tr>
value of colspan parameter should be equal to number of fields in the report.

Contents of "Header" and "Test items" section depends on list of fields you want to include into the report. Consider for example 4 fields: TestName, LastTestTime, Status, and Reply.

4) copy contents of stdHeader.html file (Examples directory) into "Header" section and add 6 more lines:
<tr>
<td bgcolor="%Background%" nowrap align="left"><strong><font color="%ItemColor%">Test name</font></strong></td>
<td bgcolor="%Background%" nowrap align="center"><strong><font color="%ItemColor%">Last test time</font></strong></td>
<td bgcolor="%Background%" nowrap align="center"><strong><font color="%ItemColor%">Status</font></strong></td>
<td bgcolor="%Background%" nowrap align="center"><strong><font color="%ItemColor%">Reply</font></strong></td>
</tr>


5) add 6 lines into "Test items" section (for each status)
<tr>
<td bgcolor="%Background%" nowrap valign="top" align="left"><font color=%ItemColor%>%TestName%</font></td>
<td bgcolor="%Background%" nowrap valign="top" align="center"><font color=%ItemColor%>%LastTestTime%</font></td>
<td bgcolor="%Background%" nowrap valign="top" align="center"><font color=%ItemColor%>%Status%</font></td>
<td bgcolor="%Background%" nowrap valign="top" align="center"><font color=%ItemColor%>%Reply%</font></td>
</tr>

That's it

Regards
Alex
doubleu
Posts: 10
Joined: Wed Jan 22, 2003 6:00 pm

Post by doubleu »

beautiful! thanks again Alex for your prompt assistance!
doubleu
Posts: 10
Joined: Wed Jan 22, 2003 6:00 pm

Post by doubleu »

Does %LastTestTime% exist in v3.62?

Also, is there a macro for Interval?

(no biggie, just curious)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

%LastTestTime% and %Interval% variables implemented in HostMonitor 3.64, will be available on next week.

Regards
Alex
Locked