<%BEGINNODATA%>
document.writeln("<TR><TD BGCOLOR=#f7f7e7 COLSPAN=7><CENTER><FONT FACE=\"ARIAL\" SIZE=2><I>No services discovered in the repository</I></FONT></CENTER></TD></TR>");
<%ENDNODATA%>
<HTML><HEAD><META http-equiv="Content-Type" content="text/html"><TITLE><%TARGET%>: Monitored Services Summary</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
var old_type   = " ";
var clear      = 0;
var warning    = 0;
var alert      = 0;
var down       = 0;
var unknown    = 0;
var total      = 0;

var t_type     = 0;
var t_clear    = 0;
var t_warning  = 0;
var t_alert    = 0;
var t_down     = 0;
var t_unknown  = 0;
var t_total    = 0;

group_str   = new Array;
display_str = new Array;

group_str[ 0]   = 'oracle_sysman_group';
group_str[ 1]   = 'oracle_sysman_node';
group_str[ 2]   = 'oracle_sysman_database';
group_str[ 3]   = 'oracle_sysman_listener';
group_str[ 4]   = 'oracle_sysman_webserver';
group_str[ 5]   = 'ORACLE_WEBSERVER';
group_str[ 6]   = 'oracle_sysman_paging';
group_str[ 7]   = 'oracle_sysman_opsinst';
group_str[ 8]   = 'oracle_sysman_cmanager';
group_str[ 9]   = 'oracle_sysman_sap';
group_str[10]   = 'oracle_forms listener';
group_str[11]   = 'oracle_sysman_sqlserver';

display_str[ 0] = 'Group';
display_str[ 1] = 'Node';
display_str[ 2] = 'Database';
display_str[ 3] = 'Listener';
display_str[ 4] = 'Webserver';
display_str[ 5] = 'Webserver';
display_str[ 6] = 'Paging Server';
display_str[ 7] = 'Parallel Server';
display_str[ 8] = 'Concurrent Manager';
display_str[ 9] = 'SAP server';
display_str[10] = 'Forms Listener';
display_str[11] = 'SQL Server';

function prettyType(str) {
  for (var i=0 ; i<12 ; i++ )
      if (str==group_str[i]) {
         return display_str[i];
      }
  return str;
}

function PrintResults () {
  plural = (total==1) ? " " : "s";
  document.writeln("<TR><TD BGCOLOR=#f7f7e7 VALIGN=\"top\"><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=2><A HREF=\"topology.htm?"+old_type+",*\"><IMG SRC=\""+old_type+".gif\" ALT=\""+prettyType(old_type)+plural+"\" WIDTH=48 HEIGHT=48 BORDER=0><BR><B>"+total+" "+prettyType(old_type)+plural+"</B></A></FONT></CENTER></TD>");
  text = (clear>0) ? "<A HREF=\"topology.htm?"+old_type+",15\"><B>"+clear+"</B></A>" : "<B>"+clear+"</B>";
  document.write("<TD BGCOLOR=#f7f7e7><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=4>"+text+"</FONT><CENTER></TD>");
  text = (warning>0) ? "<A HREF=\"topology.htm?"+old_type+",20\"><B>"+warning+"</B></A>" : "<B>"+warning+"</B>";
  document.write("<TD BGCOLOR=#f7f7e7><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=4>"+text+"</FONT><CENTER></TD>");
  text = (alert>0) ? "<A HREF=\"topology.htm?"+old_type+",25\"><B>"+alert+"</B></A>" : "<B>"+alert+"</B>";
  document.write("<TD BGCOLOR=#f7f7e7><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=4>"+text+"</B></FONT><CENTER></TD>");
  text = (down>0) ? "<A HREF=\"topology.htm?"+old_type+",100\"><B>"+down+"</B></A>" : "<B>"+down+"</B>";
  document.write("<TD BGCOLOR=#f7f7e7><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=4>"+text+"</FONT><CENTER></TD>");
  text = (unknown>0) ? "<A HREF=\"topology.htm?"+old_type+",0\"><B>"+unknown+"</B></A>" : "<B>"+unknown+"</B>";
  document.write("<TD BGCOLOR=#f7f7e7><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=4>"+text+"</FONT><CENTER></TD></TR>");

  t_type    += 1;
  t_clear   += clear;
  t_warning += warning;
  t_alert   += alert;
  t_down    += down;
  t_unknown += unknown;
  t_total   += total;

  clear      = 0;
  warning    = 0;
  alert      = 0;
  down       = 0;
  unknown    = 0;
  total      = 0;
}

function PrintTotals () {
  plural = (total==1) ? " " : "s";
  document.writeln("<TR><TD BGCOLOR=#cccc99 VALIGN=\"top\"><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=2><A HREF=\"topology.htm?*,*\"><IMG SRC=\"network.gif\" ALT=\"All the services\" WIDTH=48 HEIGHT=48 BORDER=0><BR><B>"+t_total+" service"+plural+"</B></A></FONT></CENTER></TD>");
  text = (t_clear>0) ? "<A HREF=\"topology.htm?*,15\"><B>"+t_clear+"</B></A>" : "<B>"+t_clear+"</B>";
  document.write("<TD BGCOLOR=#cccc99 VALIGN=\"top\"><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=4>"+text+"</FONT><BR><IMG SRC=\"flag_gre.gif\" ALT=\"Clear State\" WIDTH=24 HEIGHT=24 VSPACE=7></CENTER></TD>");
  text = (t_warning>0) ? "<A HREF=\"topology.htm?*,20\"><B>"+t_warning+"</B></A>" : "<B>"+t_warning+"</B>";
  document.write("<TD BGCOLOR=#cccc99 VALIGN=\"top\"><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=4>"+text+"</FONT><BR><IMG SRC=\"flag_yel.gif\" ALT=\"Warning State\" WIDTH=24 HEIGHT=24 VSPACE=7></CENTER></TD>");
  text = (t_alert>0) ? "<A HREF=\"topology.htm?*,25\"><B>"+t_alert+"</B></A>" : "<B>"+t_alert+"</B>";
  document.write("<TD BGCOLOR=#cccc99 VALIGN=\"top\"><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=4>"+text+"</FONT><BR><IMG SRC=\"flag_red.gif\" ALT=\"Alert State\" WIDTH=24 HEIGHT=24 VSPACE=7></CENTER></TD>");
  text = (t_down>0) ? "<A HREF=\"topology.htm?*,100\"><B>"+t_down+"</B></A>" : "<B>"+t_down+"</B>";
  document.write("<TD BGCOLOR=#cccc99 VALIGN=\"top\"><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=4>"+text+"</FONT><BR><IMG SRC=\"flag_gry.gif\" ALT=\"Agent Down\" WIDTH=24 HEIGHT=24 VSPACE=7></CENTER></TD>");
  text = (t_unknown>0) ? "<A HREF=\"topology.htm?*,0\"><B>"+t_unknown+"</B></A>" : "<B>"+t_unknown+"</B>";
  document.writeln("<TD BGCOLOR=#cccc99 VALIGN=\"top\"><CENTER><FONT FACE=\"ARIAL\" COLOR=\"#336699\" SIZE=4>"+text+"</FONT><BR><IMG SRC=\"flag_unk.gif\" ALT=\"Unmonitored\" WIDTH=24 HEIGHT=24 VSPACE=7></CENTER></TD></TR>");
}

function ProcessRecord(sname, stype, sev) {
  if (old_type != stype)  {
     if (old_type != " ") {
        PrintResults();
     }
     old_type = stype;
  }

  total += 1;
  if (sev == 0) {
     unknown += 1;
  } else {
    if (sev >= 100) {
       down += 1;
    } else {
      if (sev == 25) {
         alert += 1;
      } else {
        if (sev == 20) {
           warning += 1;
        } else {
          clear += 1;
        }
      }
    }
  }
}
// Hide -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white">
<IMG align=top height=72 src="oem.gif" width=320><BR CLEAR="all">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><TR>
  <TD align="left" bgColor=#336666 height=21 vAlign="top" width=9><IMG height=1 src="space.gif" width=1></TD>
  <TD align="left" bgColor=#336666 height=21 vAlign="top" width=20><IMG height=1 src="space.gif" width=1></TD>
  <TD align="left" bgColor=#336666 height=21><FONT color=#ffffff face="Arial, Helvetica, sans-serif" color=#ffffff size="+2"><B><%TARGET%>: Monitored Services Summary</B></FONT></TD>
  <TD bgColor=#336666 height=21 align="right"><FONT color=#ffffff face="Arial, Helvetica, sans-serif" color=#ffffff><B><%CURRENTDATE%></B></FONT>&nbsp;</TD>
  <TD align="left" background="rhshadow.gif" vAlign="top" width=5><IMG height=1 src="space.gif" width=7></TD>
</TR><TR>
  <TD align="left" bgColor=#336666 height=16 vAlign=top width=9><IMG height=1 src="space.gif" width=1></TD>
  <TD align="left" bgColor=#336666 height=16 vAlign=top width=11><IMG height=1 src="space.gif" width=1></TD>
  <TD align="left" background="bot.gif" bgColor=#ffffff height=16 vAlign=top colspan=2><IMG align=top height=16 src="toparch.gif" width=26></TD>
  <TD align="left" height=16 vAlign="top" width=5><IMG height=8 src="rend.gif" width=8></TD>
</TR><TR>
  <TD align="right" height=8 vAlign="top" width=9><IMG height=8 src="lend.gif" width=10></TD>
  <TD align="right" background="bot.gif" height=8 vAlign=top width=11><IMG height=1 src="space.gif" width=1></TD>
  <TD align="left" bgColor=#ffffff height=8 vAlign=top width=2100 colspan=2><IMG height=8 src="archcorn.gif" width=6></TD>
  <TD align="right" height=8 vAlign=top width=5><IMG height=1 src="space.gif" width=1></TD>
</TR></TABLE><P>
<CENTER>
<TABLE BORDER=2 cellPadding=3 cellSpacing=2><TR>
<TD BGCOLOR=#cccc99 VALIGN="bottom" WIDTH=120>&nbsp;</TD>
<TD BGCOLOR=#cccc99 VALIGN="bottom" WIDTH=120 NOWRAP><CENTER><IMG SRC="flag_gre.gif" ALT="Clear State" WIDTH=24 HEIGHT=24 VSPACE=7><BR><FONT FACE="ARIAL" COLOR="#336699" SIZE=3><B>Clear State</B></FONT></CENTER></TD>
<TD BGCOLOR=#cccc99 VALIGN="bottom" WIDTH=120 NOWRAP><CENTER><IMG SRC="flag_yel.gif" ALT="Warning State" WIDTH=24 HEIGHT=24 VSPACE=7><BR><FONT FACE="ARIAL" COLOR="#336699" SIZE=3><B>Warning State</B></FONT></CENTER></TD>
<TD BGCOLOR=#cccc99 VALIGN="bottom" WIDTH=120 NOWRAP><CENTER><IMG SRC="flag_red.gif" ALT="Alert State" WIDTH=24 HEIGHT=24 VSPACE=7><BR><FONT FACE="ARIAL" COLOR="#336699" SIZE=3><B>Alert State</B></FONT></CENTER></TD>
<TD BGCOLOR=#cccc99 VALIGN="bottom" WIDTH=120 NOWRAP><CENTER><IMG SRC="flag_gry.gif" ALT="Agent Down" WIDTH=24 HEIGHT=24 VSPACE=7><BR><FONT FACE="ARIAL" COLOR="#336699" SIZE=3><B>Agent Down</B></FONT></CENTER></TD>
<TD BGCOLOR=#cccc99 VALIGN="bottom" WIDTH=120 NOWRAP><CENTER><IMG SRC="flag_unk.gif" ALT="Unmonitored" WIDTH=24 HEIGHT=24 VSPACE=7><BR><FONT FACE="ARIAL" COLOR="#336699" SIZE=3><B>Unmonitored</B></FONT></CENTER></TD>
</TR>
<SCRIPT LANGUAGE="JavaScript">
<!--
<%BEGINDETAIL%>
ProcessRecord("<%1%>","<%2%>",<%3%>);
<%ENDDETAIL%>
<%ENDSQL%>
<%BEGINDETAIL%>
ProcessRecord("<%1%>","<%2%>",<%3%>);
<%ENDDETAIL%>
if (old_type != " ") { PrintResults(); PrintTotals(); }
// Hide -->
</SCRIPT>
</TABLE></CENTER>

<P><TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TR><TD background="space.gif" align="left" vAlign="bottom" width=2100><IMG height=1 src="space.gif" width=1></TD><TD background="space.gif" align="left" vAlign="top"    width=60><DIV align=right><IMG height=18 src="btailtop.gif" width=45></DIV></TD><TD align="left" background="rhshadow.gif" height=18 vAlign=center width=5><IMG height=1 src="space.gif" width=1></TD></TR>
<TR><TD align="left" bgColor=#336666 height=15 vAlign="center"><IMG height=1 src="space.gif" width=1></TD><TD align="left" bgColor=#336666 height=15 vAlign="center" width=60><IMG height=1 src="space.gif" width=1></TD><TD align="left" background="rhshadow.gif" height=15 vAlign=center width=5><IMG height=1 src="space.gif" width=1></TD></TR>
<TR><TD align="left" background="bot.gif" vAlign="top"><IMG height=8 src="lend.gif" width=10></TD><TD align="left" background="bot.gif" height=10 vAlign=top width=60>&nbsp;</TD><TD align="left" vAlign="top" width=5><IMG height=10 src="rend.gif"></TD></TR>
</TABLE>
<TABLE><TR><TD><A HREF="index.htm"><B>HOME</B></A></TD></TR></TABLE>
</BODY></HTML>
