What you end up with is a page that has windows that are independently scrollable that shows the device/service down and how long, with links to each.
I get to this via the mainpageprefix, and I've included what mine is. Alter for your needs.
For completeness, I also included the maplinks page since I refer to it in the down8 asp code. If you don't like it, remove the reference to it and adjust the percentage values for the remaining to what you'd like, say 50%.
All of the enclosures need to be renamed from txt to asp.
Jay Drew
At 11:34 AM 6/23/2004, you wrote:
Hi!
How can I only show the device names with services down and the corresponding device name? Modifying the detail viewmode in topview would be fine. I would like to have a quick way (report or via webpage) to see what services are down on my servers.
Thanks!
Charles R. Alexander System Administrator Quantum Corporation 719-536-6405 8301-6405
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bryan Harrell Sent: Wednesday, June 23, 2004 11:18 AM To: [EMAIL PROTECTED] Subject: Re: [WhatsUp Forum] WUG Web Server legend questions to it According to the manual (bottom of P.4) "If something occurs such as a missed poll, or an event comes in, the name of the device becomes highlighted on the map".
------------------------------------------------------------ Bryan Harrell, SPII Network Transport & Administration - Tallahassee Fla. Dept of Revenue (850)-921-0700 S/C 291-0700 ------------------------------------------------------------
>>> [EMAIL PROTECTED] 06/23/2004 11:22:42 AM >>> Hello all:
Does anyone know why WUG map shows some of the device names boxed in black, while others do not appear that way? Does a device name being blackend mean there is some sort of an issue, or is just a graphical oddity? Also, all of my devices have a little white star on the upper right corner, and I have found in the docs that that shows the device is SNMP manageable. A few of my devices also show a pink triangle on the upper left of the device icon. Can someone tell me what that means? Any info would be great. Thank you,
Artie Noel Systems Administrator Virginia Military Institute Information Technology 427 Nichols Engineering Annex Lexington, VA 24450 (O) 540-464-7710 (F) 540-464-7222 (M)540-570-1850
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="<%APPLICATION_SETTINGS% WEB_REFRESH_RATE>">
<table border>
<tr >
<td bgcolor="#c0c0c0" bordercolor="#c0c0c0"> <a href="default.asp"
TARGET="_top">Top View </td></a>
<%START_LOADED_MAP_LIST%>
<%IF% HAS_MAP_UNACKNOWLEDGED_DEVICES>
<td bgcolor="#ffff00" bordercolor="#ff0000"> <a
href="map.asp?map=<%MAP% FILENAME>"TARGET="_top"> <%MAP% NAME> </A></td>
<%ELSE%>
<td bgcolor="#c0c0c0" bordercolor="#c0c0c0"> <a
href="map.asp?map=<%MAP% FILENAME>"TARGET="_top"> <%MAP% NAME> </A></td>
<%ENDIF%>
<%END_LOADED_MAP_LIST%>
</tr>
</table>
</HTML>
<!-- Original file by Dave Habben. Additional hacks to add service by Jay Drew
Down8.asp, Downdev.asp and Downsrvc.asp are used together to create a framed page and
require rev 8 or later of WUG-->
<HTML>
<HEAD>
<TITLE>MrPing - Down Page</TITLE>
<META http-equiv=REFRESH content="<%APPLICATION_SETTINGS% WEB_REFRESH_RATE>">
</HEAD>
<table cellSpacing=0 cellPadding=3 width="98%" bgColor="linen" border=2>
<tr>
<td align=left colSpan=2>
<table width="100%" border=0>
<tr>
<td><STRONG><FONT SIZE=5>Down <EM><FONT
COLOR="RED">Devices</FONT></EM></FONT></STRONG></td>
</tr>
</table>
</td>
</tr>
<tr>
<td vAlign=top width="98%">
<table cellspacing="2" cellpadding="1" width="100%" bgcolor="linen" border="1">
<tbody>
<tr>
<td width="12%"></td>
<td width="23%"></td>
<td width="15%"></td>
<td width="25%"></td>
<td width="25%"></td>
</tr>
<tr>
<th align="left">Map</th>
<th align="left">Device</th>
<th align="left">Down Time</th>
<th align="left">Coverage</th>
<th align="left">Notes</th>
</tr>
<%START_LOADED_MAP_LIST%>
<%START_DEVICE_LIST%>
<%IF% IS_MONITORING_ENABLED>
<%IFNOT% IS_DEVICE_UP>
<%IF% HAS_DEVICE_STATE_CHANGED>
<TR BGCOLOR="#1e90ff">
<%ELSE%>
<TR BGCOLOR="linen">
<%ENDIF%>
<TD><a href="map.asp?map=<%URL_ENCODE% (%MAP%
FILENAME)>"target="_top"> <%MAP% NAME> </A></TD>
<TD>
<%IF% (%LESSTHAN% (%DEVICE% CURRENT_DOWN_COUNT, 2))>
<a href="device.asp?map=<%MAP%
FILENAME>&device=<%DEVICE%
UNIQUE_ID>"target="_top"><FONT
COLOR=GREEN><%DEVICE% DISPLAY_NAME></FONT></a>
<%ELSEIF% (%LESSTHAN% (%DEVICE% CURRENT_DOWN_COUNT,
4))>
<a href="device.asp?map=<%MAP%
FILENAME>&device=<%DEVICE%
UNIQUE_ID>"target="_top"><FONT
COLOR=YELLOW><%DEVICE% DISPLAY_NAME></FONT></a>
<%ELSE%>
<a href="device.asp?map=<%MAP%
FILENAME>&device=<%DEVICE%
UNIQUE_ID>"target="_top"><FONT
COLOR=RED><%DEVICE% DISPLAY_NAME></FONT></a>
<%ENDIF%>
</TD>
<TD>
<SCRIPT LANGUAGE="JavaScript">
var downtime = "<%DEVICE% POLL_FREQUENCY>"*"<%DEVICE%
CURRENT_DOWN_COUNT>"*"<%MAP% POLL_INTERVAL>"
if (downtime > 3599) {
var downtemp = downtime/3600;
var downhours = Math.floor(downtemp);
var downtemp = downhours*3600;
var downminutes = downtime-downtemp;
var downminutes = Math.floor(downminutes/60);
}
else {
var downhours = 0;
var downminutes = Math.floor(downtime/60);
}
if (downhours == 0)
document.write(downminutes + " min")
else
document.write(downhours + " hr : " +
downminutes + " min")
</SCRIPT>
</TD>
<%IF% (%IS_STRING_EMPTY% (%DEVICE% INFO_LINE_2))>
<TD><BR></TD>
<%ELSE%>
<TD><%DEVICE% INFO_LINE_2></TD>
<%ENDIF%>
<%IF% (%IS_STRING_EMPTY% (%DEVICE% NOTES))>
<TD><BR></TD>
<%ELSE%>
<TD><%DEVICE% NOTES></TD>
<%ENDIF%>
</TR>
<%ENDIF%>
<%ENDIF%>
<%END_DEVICE_LIST%>
<%END_LOADED_MAP_LIST%>
</tbody>
</table>
</td>
</tr>
</table>
<br><br>
<!-- Original file by Dave Habben. Additional hacks to add service by Jay Drew
Down8.asp, Downdev.asp and Downsrvc.asp are used together to create a framed page and
require rev 8 or later of WUG-->
<table cellSpacing=0 cellPadding=3 width="98%" bgColor="linen" border=2>
<tr>
<td align=left colSpan=2>
<table width="100%" border=0>
<tr>
<td><STRONG><FONT SIZE=5>Down <EM><FONT
COLOR="BLUE">Services</FONT></EM></FONT></STRONG></td>
</tr>
</table>
</td>
</tr>
<tr>
<td vAlign=top width="98%">
<table cellspacing="2" cellpadding="1" width="100%" bgcolor="linen" border="1">
<tbody>
<tr>
<td width="15%"></td>
<td width="15%"></td>
<td width="10%"></td>
<td width="25%"></td>
<td width="30%"></td>
</tr>
<tr>
<th align="left">Device</th>
<th align="left">Service</th>
<th align="left">Down Time</th>
<th align="left">Coverage</th>
<th align="left">Notes</th>
</tr>
<%START_LOADED_MAP_LIST%>
<%START_DEVICE_LIST%>
<%IF% IS_MONITORING_ENABLED>
<%IF% IS_DEVICE_UP>
<%START_SERVICE_STATISTICS_LIST%>
<%IF% (%GREATERTHAN% (%SERVICE_STATISTICS% CURRENT_DOWN_COUNT,0))>
<%IF% HAS_DEVICE_STATE_CHANGED>
<TR BGCOLOR="#FF77FF">
<%ELSE%>
<TR BGCOLOR="linen">
<%ENDIF%>
<TD>
<%IF% (%LESSTHAN% (%SERVICE_STATISTICS% CURRENT_DOWN_COUNT, 2))>
<a href="device.asp?map=<%MAP% FILENAME>&device=<%DEVICE%
UNIQUE_ID>"target="_top"><FONT COLOR=GREEN><%DEVICE%
DISPLAY_NAME></FONT></a>
<%ELSEIF% (%LESSTHAN% (%SERVICE_STATISTICS% CURRENT_DOWN_COUNT, 4))>
<a href="device.asp?map=<%MAP% FILENAME>&device=<%DEVICE%
UNIQUE_ID>"target="_top"><FONT COLOR=YELLOW><%DEVICE%
DISPLAY_NAME></FONT></a>
<%ELSE%>
<a href="device.asp?map=<%MAP% FILENAME>&device=<%DEVICE%
UNIQUE_ID>"target="_top"><FONT COLOR=RED><%DEVICE%
DISPLAY_NAME></FONT></a>
<%ENDIF%>
</TD>
<TD><%SERVICE_STATISTICS% FULLNAME></TD>
<TD>
<SCRIPT LANGUAGE="JavaScript">
var sdowntime = "<%DEVICE%
POLL_FREQUENCY>"*"<%SERVICE_STATISTICS% CURRENT_DOWN_COUNT>"*"<%MAP% POLL_INTERVAL>"
if (sdowntime > 3599) {
var sdowntemp = sdowntime/3600;
var sdownhours = Math.floor(sdowntemp);
var sdowntemp = sdownhours*3600;
var sdownminutes = sdowntime-sdowntemp;
var sdownminutes = Math.floor(sdownminutes/60);
}
else {
var sdownhours = 0;
var sdownminutes = Math.floor(sdowntime/60);
}
if (sdownhours == 0)
document.write(sdownminutes + " min")
else
document.write(sdownhours + " hr : " +
sdownminutes + " min")
</SCRIPT>
</TD>
<%IF% (%IS_STRING_EMPTY% (%DEVICE% INFO_LINE_2))>
<TD><BR></TD>
<%ELSE%>
<TD><%DEVICE% INFO_LINE_2></TD>
<%ENDIF%>
<%IF% (%IS_STRING_EMPTY% (%DEVICE% NOTES))>
<TD><BR></TD>
<%ELSE%>
<TD><%DEVICE% NOTES></TD>
<%ENDIF%>
</tr>
<%ENDIF%>
<%END_SERVICE_STATISTICS_LIST%>
<%ENDIF%>
<%ENDIF%>
<%END_DEVICE_LIST%>
<%END_LOADED_MAP_LIST%>
</tbody>
</table>
</td>
</tr>
</TABLE>
<!--
Whatsup Gold 8
Main Page Prefix
----------------
You can insert HTML in this file and it will appear as a prefix on your main
page.
-->
<TABLE cellSpacing=4 cellPadding=0 border=0 width="98%">
<TR>
<TD>
<%IF% IS_USER_ACCESS_LOG>
<FORM action="shortlogview.asp" method=get>
<INPUT type=submit value="Short Log View" name=action
style="font-family:sans-serif; font-size:small; font-style:normal; font-weight: bold;
background:aqua none; color:#000; width:8em"></FORM>
<%ENDIF%>
</TD>
<TD>
<%IF% IS_USER_ACCESS_LOG>
<FORM action="logview.asp" method=get>
<INPUT type=submit value="Full Log view" name=action
style="font-family:sans-serif; font-size:small; font-style:normal; font-weight: bold;
background:aqua none; color:#000; width:8em"></FORM>
<%ENDIF%>
</TD>
<TD>
<%IF% IS_USER_ACCESS_LOG>
<FORM action="down8.asp" method=get>
<INPUT type=submit value="What's Down?" name=action
style="font-family:sans-serif; font-size:small; font-style:normal; font-weight: bold;
background:maroon none; color:white; width:8em"></FORM>
<%ENDIF%>
</TD>
<TD>
<%IF% IS_USER_ACCESS_LOG>
<FORM action="whatburped.asp" method=get>
<INPUT type=submit value="What Bounced?" name=action
style="font-family:sans-serif; font-size:small; font-style:normal; font-weight: bold;
background:maroon none; color:white; width:8em"></FORM>
<%ENDIF%>
</TD>
<TD>
<%IF% IS_USER_ACCESS_LOG>
<FORM action="findip.asp" method=get>
<INPUT type=submit value="Find a Device" name=action
style="font-family:sans-serif; font-size:small; font-style:normal; font-weight: bold;
background:aqua none; color:#000; width:10em"></FORM>
<%ENDIF%>
</TD>
<TD>
<%IF% IS_USER_CONFIGURE_REPORTS>
<FORM action="NotMonitored.asp" method=get>
<INPUT type=submit value="What's Not Monitored" name=action
style="font-family:sans-serif; font-size:small; font-style:normal; font-weight: bold;
background:aqua none; color:#000; width:11em"></FORM>
<%ENDIF%>
</TD>
<TD>
<%IF% IS_USER_CONFIGURE_REPORTS>
<FORM action="AckAllMaps.asp" method=get>
<INPUT type=submit value="Acknowledge All Alarms" name=action
style="font-family:serif; font-size:small; font-style:normal; font-weight: bold;
background:lime none; color:#000; width:11em"></FORM>
<%ENDIF%>
</TD>
</TR>
</TABLE>
<!-- Down8.asp, Downdev.asp and Downsrvc.asp are used together to create a framed
page and require rev 8 or later of WUG-->
<html>
<HEAD>
<TITLE>Name of Your Wug Machine Here - Down Page</TITLE>
<META http-equiv=REFRESH content="<%APPLICATION_SETTINGS% WEB_REFRESH_RATE>">
</HEAD>
<frameset rows="8%,46%,46%">
<frame src="maplinks.asp" NAME="maplinks">
<frame src="downdev.asp" NAME="downdev">
<frame src="downsrvc.asp" NAME="downsrvc">
</frameset>
</html>
