Here is what I use. I have a highly customized WUG interface. I tried to change this
so it would work on a stock WUG box. I also have some CSS files that make it look a
lot nicer.
Hope this helps.
Jeff Cook
Network Administrator
Whatcom Educational Credit Union
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Charles
Alexander
Sent: Thursday, June 24, 2004 7:07 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [WhatsUp Forum] Show only the device names with services
down and the corresponding device name
I have looked at the devices down. It doesn't do what I want it to do. I
want a list of the devices that have down SERVICES and the name of the
SERVICES that are down.
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 Frye
Sent: Wednesday, June 23, 2004 1:12 PM
To: [EMAIL PROTECTED]
Subject: Re: [WhatsUp Forum] Show only the device names with services down
and the corresponding device name
There used to be a devices_down.asp page to download that would work
this... but the short of it is...
<%START_LOADED_MAP_LIST%>
<%START_DEVICE_LIST%>
<%IF% IS_DEVICE_UP>
<%ELSE%>
<%DEVICE% DISPLAY_NAME> is down!
<%ENDIF%>
<%START_SERVICE_STATISTICS_LIST%>
<%IF% IS_SERVICE_UP>
<%ELSE%>
<%SERVICE_STATISTICS% NAME> is down on <%DEVICE% DISPLAY
NAME>!
<%ENDIF%>
<%END_SERVICE_STATISTICS_LIST%>
<%END_DEVICE_LIST%>
<%END_LOADED_MAP_LIST%>
I use this with marquee style tags on my top view... and have separate
marquees for devices down and services down...looks nice and is all
clear when nothing is down... scrolls down devices and services when
they are
Bryan
>>> [EMAIL PROTECTED] 6/23/2004 2:34:19 PM >>>
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
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/
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/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
down.asp
WhatsUp Gold v8.x
This page may not work with WUG v7 or less.
This page will show all down devices.
Other files needed for full function...
acknowledge.asp (Used to acknowlege alerts)
StandardPageHeader.asp (Used for page layout)
whatsup.css (Used by my StandardPageHeader.asp)
down.css (Used for page layout)
log.asp (Used to show the full log file)
Writen By: Jeff Cook
For: Whatcom Educational Credit Union
This ASP page and the code on it may be used by anyone using WhatsUp Gold.
I have map the best attemp to make sure this page will work on a standard
WUG v8 install. However there has been no testing on any other WUG install.
There is no support provided with or for this page.
-->
<SCRIPT LANGUAGE="JavaScript">
function Sec2DayHrMin (InputSec){
var strdays = 0;
var strhours = 0;
var strminutes = 0;
var strtemp = 0;
if (InputSec > 86399){
var strtemp = InputSec/86400;
var strdays = Math.floor(strtemp);
var InputSec = InputSec-(strdays*86400);
}
if (InputSec > 3599){
var strtemp = InputSec/3600;
var strhours = Math.floor(strtemp);
var InputSec = InputSec-(strhours*3600);
}
if (InputSec > 59){
var strtemp = InputSec/60;
var strminutes = Math.floor(strtemp);
var InputSec = InputSec-(strminutes*60);
}
if (strdays != 0) document.write(strdays + "day ");
if (strhours != 0) document.write(strhours + "hr ");
if (strminutes != 0) document.write(strminutes + "min");
}
function DisplayTableRowDown
(Reason,Map,MapFileName,Device,DeviceID,HostType,Message,DownTimeSec,TimeChanged){
//document.write(""+Reason+Map+MapFileName+Device+DeviceID+HostType+Message+DownTimeSec+TimeChanged+"");
}
</SCRIPT>
<HTML>
<HEAD>
<TITLE>WUG: Down Devices and Services</TITLE>
<META http-equiv=REFRESH content="30">
<%INCLUDE% StandardPageHeader.asp>
<LINK href="down.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<script>
DeviceCount = 0;
</script>
<table cellSpacing=0 cellPadding=1 width="100%" border=1 >
<tr class="TableTitle">
<th class="TableTitle" colspan='10'>
<table cellSpacing=0 cellPadding=0 width="100%" class="TableTitle"><tr>
<th class="TableTitle" align="left"><h2>Down Devices
<th class="TableTitle" align="right"><h4>[Current time is: <%TIME%
CURRENT_DATE> - <%TIME% CURRENT_TIME>]
</table>
<tr>
<th>Map</th>
<th>Device</th>
<th>Type</th>
<th>Status or Services</th>
<th>Down Time</th>
<th>Change</th>
</tr>
<%START_LOADED_MAP_LIST%>
<%START_DEVICE_LIST%>
<%IF% IS_MONITORING_ENABLED>
<%IFNOT% %MATCH% (%DEVICE% HOST_TYPE, Subnet)>
<%IFNOT% %MATCH% (%DEVICE% HOST_TYPE, Container)>
<%IFNOT% %MATCH% (%DEVICE% STATUS, Not checked)>
<%IF% (%FIND_STRING% (%URL_VALUE% "MAP",%MAP% NAME))>
<%IF% (%FIND_STRING% (%URL_VALUE% "HOST_TYPE",%DEVICE% HOST_TYPE))>
<%IFNOT% IS_DEVICE_UP>
<%IF% %MATCH% (%URL_VALUE% "ShowDownDevices", "on")>
<script>
DisplayTableRowDown ("DownDevice","<%MAP% NAME>","<%MAP%
FILENAME>","<%DEVICE% DISPLAY_NAME>","<%DEVICE% UNIQUE_ID>","<%DEVICE%
HOST_TYPE>","<%DEVICE% STATUS>",<%DEVICE% POLL_FREQUENCY>*<%DEVICE%
CURRENT_DOWN_COUNT>*<%MAP% POLL_INTERVAL>,"<%device% TIME_OF_LAST_STATE_CHANGE>")
</script>
<TR CLASS="<%DEVICE% HOST_TYPE>">
<script>DeviceCount ++;</script>
<TD><font size=-1><a href="/map.asp?map=<%URL_ENCODE% (%MAP% FILENAME)>"
<%IF% %MATCH% (%URL_VALUE% "OpenInNewWindow",
"on")>target="_blank"<%ENDIF%>
><%MAP% NAME></A></TD>
<TD><a href="/dt-frame.asp?map=<%MAP% FILENAME>&device=<%DEVICE%
UNIQUE_ID>"
<%IF% %MATCH% (%URL_VALUE% "OpenInNewWindow",
"on")>target="_blank"<%ENDIF%>
><%DEVICE% DISPLAY_NAME></a></TD>
<td><font size=-1><%DEVICE% HOST_TYPE></td>
<td><font size=-1><%DEVICE% STATUS></td>
<TD align='right'><font size=-1>
<SCRIPT LANGUAGE="JavaScript">
Sec2DayHrMin(<%DEVICE% POLL_FREQUENCY>*<%DEVICE%
CURRENT_DOWN_COUNT>*<%MAP% POLL_INTERVAL>)
</SCRIPT><br>
</TD>
<td align='center'><font size=-1><%device%
TIME_OF_LAST_STATE_CHANGE></font></td>
</TR>
<%IF% %MATCH% (%URL_VALUE% "ShowDeviceLog", "on")><TR><TD COLSPAN="6"
class="log"><PRE class="log"><%DEVICE_LOG% 3></PRE></td><%ENDIF%>
<%ENDIF%>
<%ELSEIF% IS_DEVICE_UP>
<%IF% (%GREATERTHAN% (%DEVICE% MONITOR_DOWN_COUNT,0))>
<%IF% %MATCH% (%URL_VALUE% "ShowDownServices", "on")>
<%START_SERVICE_STATISTICS_LIST%><%IFNOT% IS_SERVICE_UP>
<TR CLASS="Service">
<script>DeviceCount ++;</script>
<TD><font size=-1>
<a href="/map.asp?map=<%URL_ENCODE% (%MAP% FILENAME)>"
<%IF% %MATCH% (%URL_VALUE% "OpenInNewWindow",
"on")>target="_blank"<%ENDIF%>
><font color="black"><%MAP% NAME></font>
</A>
</TD>
<TD>
<a href="/dt-frame.asp?map=<%MAP% FILENAME>&device=<%DEVICE% UNIQUE_ID>"
<%IF% %MATCH% (%URL_VALUE% "OpenInNewWindow",
"on")>target="_blank"<%ENDIF%>
><FONT COLOR="BLACK">
<%DEVICE% DISPLAY_NAME>
</FONT>
</a>
</TD>
<td><font size=-1><%DEVICE% HOST_TYPE></td>
<td><font color="black" size=-1><%SERVICE_STATISTICS%
FULLNAME></font></td>
<TD align='right'><font size=-1>
<SCRIPT LANGUAGE="JavaScript">
Sec2DayHrMin(<%DEVICE% POLL_FREQUENCY>*<%SERVICE_STATISTICS%
CURRENT_DOWN_COUNT>*<%MAP% POLL_INTERVAL>)
</SCRIPT>
<br>
</font></td>
<td align='center'><font size=-1><%device%
TIME_OF_LAST_STATE_CHANGE></font></td>
</TR>
<%ENDIF%><%END_SERVICE_STATISTICS_LIST%>
<%IF% %MATCH% (%URL_VALUE% "ShowDeviceLog", "on")><TR><TD COLSPAN="6"
class="log"><PRE class="log"><%DEVICE_LOG% 3></PRE></td><%ENDIF%>
<%ENDIF%>
<%ELSE%>
<%IF% %MATCH% (%URL_VALUE% "ShowNeedsAck", "on")>
<%IF% HAS_DEVICE_STATE_CHANGED>
<TR class="Acknowlege">
<script>DeviceCount ++;</script>
<TD><font size=-1>
<a href="/map.asp?map=<%URL_ENCODE% (%MAP% FILENAME)>"
<%IF% %MATCH% (%URL_VALUE% "OpenInNewWindow",
"on")>target="_blank"<%ENDIF%>
>
<font color="black"><%MAP% NAME></font>
</A>
</TD>
<TD>
<a href="/dt-frame.asp?map=<%MAP% FILENAME>&device=<%DEVICE%
UNIQUE_ID>"
<%IF% %MATCH% (%URL_VALUE% "OpenInNewWindow",
"on")>target="_blank"<%ENDIF%>
>
<FONT COLOR=BLUE>
<%DEVICE% DISPLAY_NAME>
</FONT>
</a>
</TD>
<td><%DEVICE% HOST_TYPE></td>
<td><font size=-1>
<A href="/acknowledge.asp?Submit=Device&map=<%MAP%
FILENAME>&device=<%DEVICE% UNIQUE_ID>"
<%IF% %MATCH% (%URL_VALUE% "OpenInNewWindow",
"on")>target="_blank"<%ENDIF%>
>Acknowlege</A>
<A href="/acknowledge.asp?Submit=Map&map=<%MAP% FILENAME>"
<%IF% %MATCH% (%URL_VALUE% "OpenInNewWindow",
"on")>target="_blank"<%ENDIF%>
>[Map]</A>
<A href="/acknowledge.asp?Submit=All"
<%IF% %MATCH% (%URL_VALUE% "OpenInNewWindow",
"on")>target="_blank"<%ENDIF%>
>[All]</A>
</td>
<TD><br></td>
<td align='center'><font size=-1><%device%
TIME_OF_LAST_STATE_CHANGE></font></td>
</TR>
<%IF% %MATCH% (%URL_VALUE% "ShowDeviceLog", "on")><TR><TD
COLSPAN="6" class="log"><PRE class="log"><%DEVICE_LOG% 3></PRE></td><%ENDIF%>
<%ENDIF%>
<%ENDIF%>
<%ENDIF%>
<%ENDIF%>
<%ENDIF%>
<%ENDIF%>
<%ENDIF%>
<%ENDIF%>
<%ENDIF%>
<%ENDIF%>
<%END_DEVICE_LIST%>
<%END_LOADED_MAP_LIST%>
</table>
<%IF% %MATCH% (%URL_VALUE% "ShowCount", "on")>
<b>WhatsUp Gold found
<script>document.write(DeviceCount);</script>
matching device(s).</b>
<%ENDIF%>
<a target="_blank" href="/show-log.asp?Submit=All">Show full log file</a><br>
<%IF% %MATCH% (%URL_VALUE% "ShowWUGLog", "on")><pre CLASS="Log"><%LOG_FILE%
50></pre><%ENDIF%>
<table cellspacing="0" cellpadding="2" border="1" >
<tr><td class="InputForm">
<form action="down.asp" method=get>
<B>Show: </B>
<input type="checkbox" name="ShowDownDevices"
<%IF% %MATCH% (%URL_VALUE% "ShowDownDevices", "on")>checked<%ENDIF%>
>Down Devices
<input type="checkbox" name="ShowDownServices"
<%IF% %MATCH% (%URL_VALUE% "ShowDownServices", "on")>checked<%ENDIF%>
>Down Services
<input type="checkbox" name="ShowNeedsAck"
<%IF% %MATCH% (%URL_VALUE% "ShowNeedsAck", "on")>checked<%ENDIF%>
>Needs Acknowlegement
<input type="checkbox" name="ShowDeviceLog"
<%IF% %MATCH% (%URL_VALUE% "ShowDeviceLog", "on")>checked<%ENDIF%>
>Device Log
<input type="checkbox" name="ShowWUGLog"
<%IF% %MATCH% (%URL_VALUE% "ShowWUGLog", "on")>checked<%ENDIF%>
>WUG Log
<input type="checkbox" name="ShowCount"
<%IF% %MATCH% (%URL_VALUE% "ShowCount", "on")>checked<%ENDIF%>
>Count
<input type="checkbox" name="OpenInNewWindow"
<%IF% %MATCH% (%URL_VALUE% "OpenInNewWindow", "on")>checked<%ENDIF%>
>OpenInNewWindow
MAP:<input maxlength=128 size=30 name="MAP" value="<%URL_VALUE% "MAP">">
HOST_TYPE:<input maxlength=128 size=30 name="HOST_TYPE" value="<%URL_VALUE%
"HOST_TYPE">">
<input type=submit value="Search" name="Submit">
</form>
</table>
</BODY>
</HTML>
A {color:Black;}
TR {background-color:pink;}
TR.Service {background-color: lightblue;}
TR.Acknowlege {background-color: lightgreen;}
TR.Server {background-color: Red;}
TR.Server1 {background-color: Red;}
TR.Server2 {background-color: Red;}
TR.Server3 {background-color: Red;}
TR.Switch {background-color: Red;}
TR.Router {background-color: Red;}
TR.PBX-IPRC {background-color: Red;}
TR.Axel {background-color: Red;}
TR.Lantronix_MultiPort
{background-color: Red;}
TR.Digital_Video_Recorder
{background-color: Red;}
TR.Door_Access_System
{background-color: Red;}
TR.PC-Laptop {background-color: #dddddd;}
TR.PC-Home {background-color: #dddddd;}
TR.VPN_Device {background-color: #dddddd;}
TR.Router_DSL {background-color: #dddddd;}
TR.Router_Cable {background-color: #dddddd;}
BODY {
color: black;
background-color: white;
font-style: normal;
font-family: Arial;
font-size: 10pt;
font-weight: normal;
}
TH {
color: Black;
background-color: silver;
font-size: 10pt;
font-weight: bold;
text-align: center;
vertical-align: middle;
}
TD {
vertical-align: top;
}
.PageTitle {
color: Black;
font-weight: bold;
font-size: normal;
vertical-align: middle;
}
.PageHeader {
color: black;
background-color: white;
font-weight: normal;
font-size: normal;
text-align: right;
vertical-align: top;
}
.TableHeader {
color: black;
background-color: white;
font-weight: normal;
font-size: normal;
vertical-align: top;
}
.TableTitle {
color: black;
background-color: #0080c0;
font-weight: bold;
font-size: normal;
vertical-align: top;
}
.Header {
color: Black;
background-color: silver;
font-weight: bold;
font-size: normal;
text-align: center;
vertical-align: middle;
}
.Title {
color: Black;
background-color: silver;
font-weight: bold;
font-size: normal;
text-align: left;
vertical-align: middle;
}
.InputForm {
color: black;
background-color: white;
vertical-align: top;
font-weight: normal;
text-align: Left;
font-size: 10pt;
}
.Log {
color: Black;
background-color: white;
font-weight: lighter;
font-size: smaller;
text-align: Left;
vertical-align: top;
font-family: monospace;
font-size: 8pt;
}
H1 {
font-size: 20pt;
font-weight: bold;
vertical-align: middle;
}
H2 {
font-size: 14pt;
font-weight: bold;
vertical-align: middle;
}
H3 {
font-size: 14pt;
font-weight: bold;
vertical-align: middle;
}
H4 {
font-size: 10pt;
font-weight: bold;
vertical-align: middle;
}
H5 {
font-size: 8pt;
font-weight: bold;
vertical-align: top;
}
H6 {
font-size: 8pt;
color: silver;
font-weight: normal;
vertical-align: middle;
}