Title: HTML Summary

Here’s a template that should work for you. Just set SA to create ServersAlive.asp using this. If you don’t use .asp, then you should be able to figure out the calculations using _javascript_ instead. Add the link to the “Downs” and there you go!

 

Michael D. Shook
Technical Analyst
[EMAIL PROTECTED]
863 668 4477 (work)
863 860 4070 (cell)
863 665 1261 (fax)
www.saddlecrk.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zenthon, Clive
Sent: Monday, October 18, 2004 10:02 AM
To: [EMAIL PROTECTED]
Subject: [SA-list] HTML Summary

 

 

Is there an HTML template available that displays a summary page eg:

Last check:     16/10/2004 - 15:59:40
Down:           4
Maint:          6
Up:                     220

The idea is to have this for use with a PDA and have Down: as a hyperlink to a page that gives a fuller display of checks that are down.

 

Thanks



-------------------------------------------------------------
A list of partners is available on request.

This email and any attachments are confidential, legally privileged and protected by copyright. If you are not the intended recipient dissemination or copying of this email is prohibited. If you have received this in error, please notify the sender by replying by email and then delete the email completely from your system.

No responsibility is accepted by Reynolds Porter Chamberlain for personal emails, or emails unconnected with the firm's or client's business.


<%@ Language=VBScript %>
<script id="DebugDirectives" runat="server" language="javascript">
// Set these to true to enable debugging or tracing
@set @debug=false
@set @trace=false
</script>



<% ' VI 6.0 Scripting Object Model Enabled %>
<!--#include file="_ScriptLibrary/pm.asp"-->
<% if StartPageProcessing() Then Response.End() %>
<FORM name=thisForm METHOD=post>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

<link REL="stylesheet" TYPE="text/css" HREF="../_Themes/subterra/THEME.CSS" VI6.0THEME="Subterranean">
<link REL="stylesheet" TYPE="text/css" HREF="../_Themes/subterra/GRAPH0.CSS" VI6.0THEME="Subterranean">
<link REL="stylesheet" TYPE="text/css" HREF="../_Themes/subterra/COLOR0.CSS" VI6.0THEME="Subterranean">
<link REL="stylesheet" TYPE="text/css" HREF="../_Themes/subterra/CUSTOM.CSS" VI6.0THEME="Subterranean">

<%
	strPageHeader = "Lakeland Servers Alive Statistics"
	strRowColor = "#FFEEFF"	
%>

<title><%=strPageHeader%></title>

<%

strCycleStart = "<sa_cyclestart>"
strCycleTime = "<sa_cycletime>"
strSAStart = "<sa_startshortdate> <sa_startlongtime>"
strSAVersion = "<sa_version>"

%>
<!--
This space intentionally left blank
	<sa_report>
		<sa_topgroupheader>
<%
			strTopGroup = "<sa_topgroup_name>"
			strEntriesTotal = "<sa_group_number_of_entries>"
			strEntriesUnavailable = "<sa_group_unavailable_entries>"
			strEntriesUnchecked = "<sa_group_unchecked_entries>"
			strEntriesUp = "<sa_group_up_entries>"
			strEntriesDown = "<sa_group_down_entries>"
			strEntriesMaintenace = "<sa_group_maintenance_entries>"
%>
		</sa_topgroupheader>
	</sa_report>
-->

<%
	strRunTimeMinutesTotal = DateDiff("n",cdate(strSAStart),cdate(strCycleStart))
	strRunTimeDays = int(strRunTimeMinutesTotal / 1440)
	strRunTimeRemainder = strRunTimeMinutesTotal - (strRunTimeDays * 1440)
	strRunTimeHours = int(strRunTimeRemainder / 60)
	strRunTimeMinutes = strRunTimeRemainder - (strRunTimeHours * 60)
	strRunTime = strRunTimeDays & "d " & strRunTimeHours & "h " & strRunTimeMinutes & "m"
%>

</HEAD>
<BODY><!-- #INCLUDE FILE="top.inc" -->

<table ALIGN="center" bordercolordark="#006699" bordercolorlight="#339999" Border="10" bgcolor="#EEEEEE" cellpadding="10" cellspacing="0">
  <TR>
    <TD>Version of Servers Alive</TD>
    <TD><%=strSAVersion%></TD></TR>
  <TR>
    <TD>Current Instance of Servers Alive Start</TD>
    <TD><%=strSAStart%></TD></TR>
  <TR>
    <TD>Current Servers Alive Running Time</TD>
    <TD><%=strRunTime%></TD></TR>
  <TR>
    <TD>Last Check Cycle Start Time</TD>
    <TD><%=strCycleStart%></TD></TR>
  <TR>
    <TD>Last Check Cycle Duration</TD>
    <TD><%=strCycleTime%></TD></TR>
  <TR>
    <TD>Total Number of Checks Being Processed</TD>
    <TD><%=strEntriesTotal%></TD></TR>
  <TR>
    <TD>Total Number of Checks That Are Up</TD>
    <TD><%=strEntriesUp%></TD></TR>
  <TR>
    <TD>Total Number of Checks That Are In Maintenance</TD>
    <TD><%=strEntriesMaintenace%></TD></TR>
  <TR>
    <TD>Total Number of Checks That Are Unavailable</TD>
    <TD><%=strEntriesUnavailable%></TD></TR>
  <TR>
    <TD>Total Number of Checks That Are Unchecked</TD>
    <TD><%=strEntriesUnchecked%></TD></TR>
  <TR>
    <TD>Total Number of Checks That Are Down</TD>
    <TD><%=strEntriesDown%></TD></TR>
</TABLE>
    
<!-- #INCLUDE FILE="bottom.inc" -->
</BODY>
<% ' VI 6.0 Scripting Object Model Enabled %>
<% EndPageProcessing() %>
</FORM>
</html>

Reply via email to