|
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 From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zenthon, Clive
|
<%@ 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>
