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?
Report generation loses colour when external header selected
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.
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.
<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%">
<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%">
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
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
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>
<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