Report generation loses colour when external header selected

When you post information about some problem, please include the following details: - OS version (e.g. Windows 2000 Professional SP3); HostMonitor version; problem description.
Post Reply
spetrie
Posts: 5
Joined: Thu Apr 14, 2011 7:05 am
Location: UK

Report generation loses colour when external header selected

Post by spetrie »

Host monitor: 8.84
I am generating SLA report and all is fine (grey colour scheme selected) without external header. Report is fine with different colours displayed for various items and the standard inbuilt header.
When I add an external header the whole report loses the colour scheme. (grey colour scheme selected in my case).
If I uncheck the use external header then all is back to normal, but I get the standard built in header.
How can I have a custom heater (I only want to change the text) and maintain the colour scheme slected?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

How exactly your header looks?
Have you used correct styles in the header?

<style type="text/css">
td.Header ...
td.FolderGood ...
td.FolderBad ...
td.SummaryBad ...
td.SummaryGood ...
td.Ok ...
td.Bad ...
</style>

Regards
Alex
spetrie
Posts: 5
Joined: Thu Apr 14, 2011 7:05 am
Location: UK

Post by spetrie »

I used the example header in the example folder. (Just changed the name that is displayed) I assumed that it was the same as the standard built in header and I could just change the name to something meaningful for the report.
Example footer works fine. It does not modify the colour scheme.
Example header causes ground and the lines of data for the SLA including the header are all blue. Grey pallet was selected in the config.
spetrie
Posts: 5
Joined: Thu Apr 14, 2011 7:05 am
Location: UK

Post by spetrie »

can you provide a sample external header that looks like the standard built-in header, but it maintains the colour scheme selected in the config for the SLA report.
spetrie
Posts: 5
Joined: Thu Apr 14, 2011 7:05 am
Location: UK

Post by spetrie »

<html><head>
<meta name="GENERATOR" content="Status Monitor">
<META HTTP-EQUIV="REFRESH" CONTENT="600">
<title>Ping Report</title>
<STYLE TYPE="text/css"><!-- a:hover { color: "#E8F7FF"; } --> </STYLE>
</head>
<body bgcolor="#00008C" text="#DFDFDF" link="#65D3FE" vlink="#65D3FE" alink="#E8F7FF">
<p align="left"><u><strong><big><big>Site OSM Ping Report</big></big><br>
</strong></u><font face="Arial">Generated on %Date% at %Time%</font><br>
</p>
<div align="center"><center>
<table border="0" bordercolor="#00008C" width="100%">
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

This example has nothing to do with SLA reports, its for regular HTML reports.
You may open any SLA report created by HostMonitor and check how header looks.
Example

Code: Select all

<html><head>
<meta name="GENERATOR" content="Advanced Host Monitor">
<META http-equiv="Content-Style-Type" content="text/css">
<title>HostMonitor report</title>
<STYLE TYPE="text/css"><!-- a:hover { color: "#00FFFF"; } --> </STYLE>
<style type="text/css">
 td.Header { font-weight: bold;  white-space: nowrap; vertical-align: top; background: #009F50; color: #FFFFFF; border-style: inset; border-width: 1 2 2 1; border-color: #333333; }
 td.FolderGood { white-space: nowrap; vertical-align: top; background: #009F50; color: #FFFFFF; border-style: none; }
 td.FolderBad { white-space: nowrap; vertical-align: top; background: #FF8080; color: #000000; border-style: none; }
 td.SummaryBad { font-weight: bold;  white-space: nowrap; vertical-align: top; background: #009F50; color: #FFFFFF; border-style: solid; border-width: 3 1 3 1; border-color: #FF8080; }
 td.SummaryGood { font-weight: bold;  white-space: nowrap; vertical-align: top; background: #009F50; color: #FFFFFF; border-style: solid; border-width: 3 1 3 1; border-color: #009F50; }
 td.Ok { font-size: smaller;  white-space: nowrap; vertical-align: top; background: #008000; color: #C4FFFF; border-style: none; }
 td.Bad { font-size: smaller;  white-space: nowrap; vertical-align: top; background: #FF8080; color: #000000; border-style: none; }
</style>
</head>
<body bgcolor="#005E00" text="#E9E9E9" link="#00FFFF" vlink="#00FFFF" alink="#00FFFF">
<p align="left"><u><strong><big><big>HostMonitor Report</big></big></strong></u><br>
<font face="Arial">Generated on 1/14/2011 at 5:39:30 PM</font>
<hr><br>
For SLA reports with charts, add one more line:
<center><table border=0><tr>

The same style elements should be defined in your header
<style type="text/css">
td.Header ...
td.FolderGood ...
td.FolderBad ...
td.SummaryBad ...
td.SummaryGood ...
td.Ok ...
td.Bad ...
</style>

You may use macro variables to display report generation time and some statistics
http://www.ks-soft.net/hostmon.eng/mfra ... m#RepMacro

Regards
Alex
spetrie
Posts: 5
Joined: Thu Apr 14, 2011 7:05 am
Location: UK

Post by spetrie »

Thanks. All sorted now. I had assumed that when I selected the colour scheme, adding an external header would not change the scheme. I now see that the colour scheme is built into the header.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

For SLA report with external headers, yes you need to specify colors in the header.
For Custom HTML report you may use additional variables...

Regards
Alex
Post Reply