Title: Group Maps in Default web page.
Moti, Paul here from FLUX.    I got the code below from someone on this list, very nice folks.  Also, there are some scripts and ASP pages posted on the site for the WhatsUp users that you can look through.   However, this code gathers the data from all maps and condenses it into one, I don't know if it's exactly what you're looking for, but maybe with some editing you can get it there.   Put it in the programfiles/whatsup/web  folder, and you should be able to pull it up on the WU webpage.   Hope this helps!!!  
pj
 
page starts after dashed line below
-------------------------------------------------------------------------------------------------------------------------------------------------------------
<script language="_javascript_">
<!--
 
//////////////////////////////////////////
// Begin site specific customizations //
//////////////////////////////////////////
 
var Region = "put some text here Moti";
var URL = http://the.link.to.your.page.and:port;
 
//////////////////////////////////////////
// End region specific customizations ////
//////////////////////////////////////////
 

var Up = 0;
var Down = 0;
var Services = 0;
 
<%START_LOADED_MAP_LIST%>
 Up = Up + <%MAP% TOTAL_DEVICES_UP>;
 Down = Down + <%MAP% TOTAL_DEVICES_DOWN>;
 Services = Services + <%MAP% TOTAL_SERVICES_DOWN>;
<%END_LOADED_MAP_LIST%>
 
document.write("<TR>");
document.write("<TD><A HREF="">" + Region + "</A></TD>");
 
if (Up == 0) {
  document.write("<TD align=right>" + Up + "</TD>"); }
 else {
  document.write("<TD bgcolor=#77ff77 align=right>" + Up + "</TD>"); }
 
if (Down == 0) {
 document.write("<TD align=right>" + Down + "</TD>"); }
else {
 document.write("<TD bgcolor=#ff7777 align=right>" + Down + "</TD>"); }
 
if (Services == 0) {
 document.write("<TD align=right>" + Services + "</TD>"); }
else {
 document.write("<TD bgcolor=#ff77ff align=right>" + Services + "</TD>"); }
 
document.write("</TR>");
 
// -->
</script>
-------------------------------------------------------------------------------------------------------------------------------------------------------------
page ended above the dashed line
 


======================================
Paul Jasa
Network Engineer
======================================

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Moti Levy
Sent: Wednesday, March 24, 2004 04:19 PM
To: [EMAIL PROTECTED]
Subject: [WhatsUp Forum] Group Maps in Default web page.

Hi ,
WUG support recommended I consult the minds on this forum for my above question .
I am looking for a way to have the default web page show groups ( contexts ? ) of maps .
For example if I have a 5 maps :

Map1 , Map2 , Map3 , Map4 , Map5

I want the default web page to display :
"Map1 - Map3"   servers_total servers_down
"Map4 - Map5"   servers_total servers_down

Clicking on "Map1 - MAp3" will drill down to a page that has map1 2 and 3 links .
Any pointers or where to look for them will be greatly appreciated .



Moti Levy
Citrix Systems, Inc.
[EMAIL PROTECTED]
Voice: (954) 2672261
Cell: (954) 6501304

The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system.

Reply via email to