KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Report generation loses colour when external header selected

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports
View previous topic :: View next topic  
Author Message
spetrie



Joined: 14 Apr 2011
Posts: 5
Location: UK

PostPosted: Thu Apr 14, 2011 7:18 am    Post subject: Report generation loses colour when external header selected Reply with quote

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?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12790
Location: USA

PostPosted: Thu Apr 14, 2011 11:38 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
spetrie



Joined: 14 Apr 2011
Posts: 5
Location: UK

PostPosted: Fri Apr 15, 2011 2:00 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
spetrie



Joined: 14 Apr 2011
Posts: 5
Location: UK

PostPosted: Fri Apr 15, 2011 2:02 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
spetrie



Joined: 14 Apr 2011
Posts: 5
Location: UK

PostPosted: Fri Apr 15, 2011 2:06 am    Post subject: Reply with quote

<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%">
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12790
Location: USA

PostPosted: Fri Apr 15, 2011 10:52 am    Post subject: Reply with quote

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:
<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/mframe.htm#profiles.htm#RepMacro

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
spetrie



Joined: 14 Apr 2011
Posts: 5
Location: UK

PostPosted: Fri Apr 15, 2011 11:09 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12790
Location: USA

PostPosted: Fri Apr 15, 2011 12:16 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index