Here's the files, I don't know if the list will strip them off though.
Comments or improvements are welcome.  

-----Original Message-----
From: Scheitel, James [mailto:scheitelj@;kniferiver.com]
Sent: Thursday, November 07, 2002 9:34 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [WhatsUp Forum] Web Templates, Down time total or this
instan ce?


Excerpt from Jeff's previous message:
=================================================
Get the files here:
http://www.geocities.com/jbrady33/
download down.asp.txt and remove the .txt extension, put it in your WEB
directory.  Also download redflash.gif and put it in your web directory.
Now open a browser and browse the down.asp file.
(sample=http://mywhatsupserver/down.asp)
=================================================

-----Original Message-----
From: David [mailto:forum@;moragg.com]
Sent: Thursday, November 07, 2002 8:31 AM
To: [EMAIL PROTECTED]
Subject: RE: [WhatsUp Forum] Web Templates, Down time total or this
instance?


Jeff,

I would very much like a copy...

Thanks,

~David



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:WhatsUp_Forum-owner@;list.ipswitch.com] On Behalf Of Brady, Jeff
Sent: Wednesday, 06 November, 2002 21:08
To: '[EMAIL PROTECTED]'
Subject: [WhatsUp Forum] Web Templates, Down time total or this
instance?


> Hello All, 
> 
> Working from the stuff posted by Chris Allen and Brian Miller, I am
> learning the Web Template system and creating a "down systems only"
page
> for us to display on our overhead monitors in Network Engineering and
the
> Help Desk.  I have the page working well, Down device names pop up in
a
> large red font on a white background, the webdown.wav alert sounds,
and
> the border of the page flashes red (background switches to an animated
gif
> on the same trigger as the alarm).  The bottom of the page show the
> devices up/down map summary chart, the time of the last refresh (every
60
> seconds) and the current time and date (from the local system clock).
> When no devices are down, page is white with no flashing border, just
> shows the summary and time displays.   If anybody wants a copy let me
> know.
> 
> My problem/question:
> 
> I want to show how long the device has been down.  According to the
web
> template reference, the tag <%DEVICE% DOWN_TIME> should return the
time
> since the first missed poll, if there has not been an up poll since.
What
> I seem to get is the total cumulative down time for the device since
the
> counters were reset.  Am I reading this wrong?
> 
> I also tried <%DEVICE LAST_SUCCESSFUL_POLL_TIME> and <%DEVICE%
> TIME_OF_LAST_STATE_CHANGE>, but both return no data, just a blank
space.
> 
> Thanks Everyone,
> Jeff B.
> 
>                       Jeffery S. Brady
>                       Network Engineer
>                       AAA Mid-Atlantic
>                       2040 Market Street
>                       Philadelphia, PA  19103
> 
> 

Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

<html>
<META HTTP-EQUIV="Refresh" CONTENT="60">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<head>
<title>WhatsUp Gold Device Down Monitor</title>

</head>
<body onLoad="goforit()" topmargin="40" leftmargin="40">


<script>

/*
Live Date Script-
� Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms 
Of Use,
visit http://www.dynamicdrive.com
*/


var dayarray=new 
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new 
Array("January","February","March","April","May","June","July","August","September","October","November","December")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate="<font size=8><face='Arial'><b>&nbsp;"+hours+":"+minutes+":"+seconds+" 
"+dn+"<font size=6> <br>  "+dayarray[day]+", "+montharray[month]+" "+daym+", 
"+year+"</b></font></font></font>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}

</script>



 <%START_LOADED_MAP_LIST%>
                <%IF% HAS_MAP_STATE_CHANGED>
                                        <%IF% (%MATCH% (%MAP% TOTAL_DEVICES_DOWN, 0))>
                                                <%IF% (%MATCH% (%MAP% 
TOTAL_SERVICES_DOWN, 0))>
                                                <%ELSE%>
                                                        <body bgcolor="#FF0000" 
background="/redflash.gif">
                                                <%ENDIF%>
                                        <%ELSE%>
                                                        <body bgcolor="#FF0000" 
background="/redflash.gif">
                                        <%ENDIF%>
                <%ENDIF%>
<%END_LOADED_MAP_LIST%>



<table border="0" bgcolor="#FFFFFF" cellpadding="5">

  <tr>
    <td valign="top" align="left">

<B> <FONT FACE="ARIAL" SIZE=8 COLOR=BLACK> Down Device List </b>
<hr>

 <%START_LOADED_MAP_LIST%>
 <%START_DEVICE_LIST%>

                        <%IFNOT% IS_DEVICE_UP>
                   <b> <FONT FACE="ARIAL" SIZE=8 COLOR=RED> <%DEVICE% DISPLAY_NAME> 
</b> 
                        &nbsp;&nbsp;<FONT FACE="ARIAL" SIZE=5 COLOR=BLACK>  - Total 
Down Time (hours:minutes) <FONT FACE="ARIAL" SIZE=6 COLOR=BLACK> - &nbsp; <%DEVICE% 
DOWN_TIME>

                   <BR>
              <%ENDIF%>
         <%END_DEVICE_LIST%>



                <%IF% HAS_MAP_STATE_CHANGED>
                                        <%IF% (%MATCH% (%MAP% TOTAL_DEVICES_DOWN, 0))>
                                                <%IF% (%MATCH% (%MAP% 
TOTAL_SERVICES_DOWN, 0))>
                                                <%ELSE%>
                                                        <bgsound src="<%SOUND_TYPE% 
WEBDOWN>">
                                                        <body bgcolor="#FF0000" 
background="/redflash.gif">
                                                <%ENDIF%>
                                        <%ELSE%>
                                                <bgsound src="<%SOUND_TYPE% WEBDOWN>">
                                                <body bgcolor="#FF0000" 
background="/redflash.gif">
                                        <%ENDIF%>
                <%ENDIF%>
<%END_LOADED_MAP_LIST%>
<hr>
<br>

All Devices Summary
    <TABLE cellSpacing=2 cellPadding=0 width="100%" bgColor="#c0c0c0" border=1>
        <TR>
          <TD width="20%"></TD>
          <TD width="20%"></TD>
          <TD width="20%"></TD>

                </TR>
        <TR>
          <TH align=left>Map</TH>
          <TH align=right>Items<BR>Up</TH>
          <TH align=right>Items<BR>Down</TH>
     </TR>
          <%START_LOADED_MAP_LIST%>
                <tr >
                <td><a href="map.asp?map=<%MAP% FILENAME>"> <%MAP% NAME> </A></td>
                <%IF% (%GREATERTHAN% (%MAP% TOTAL_DEVICES_UP,0))>
                        <td bgcolor="#77ff77" align=right><FONT FACE="ARIAL" SIZE=6 
COLOR=BLACK><%MAP% TOTAL_DEVICES_UP></td>
                <%ELSE%>
                        <td align=right><FONT FACE="ARIAL" SIZE=6 COLOR=BLACK><%MAP% 
TOTAL_DEVICES_UP></td>
                <%ENDIF%>

                <%IF% (%GREATERTHAN% (%MAP% (TOTAL_DEVICES_DOWN),0))>
                        <td bgcolor="#FF7777" align=right><FONT FACE="ARIAL" SIZE=6 
COLOR=BLACK><%MAP% TOTAL_DEVICES_DOWN></td>
                <%ELSE%>
                        <td align=right> <FONT FACE="ARIAL" SIZE=6 COLOR=BLACK><%MAP% 
TOTAL_DEVICES_DOWN></td>
                <%ENDIF%>
                </tr>
                <%END_LOADED_MAP_LIST%>

         </TABLE>
         <FONT FACE="ARIAL" SIZE=5 COLOR=BLACK>Last Updated &nbsp;&nbsp;<%TIME% 
CURRENT_TIME>
         <hr>
         <b>Current Time - </b><span id="clock"></span>
         </td>
           </tr>
         </table>


</font>
</html>

<<attachment: redflash.gif>>

Reply via email to