Location: PHPKode > projects > WillCool > WillCool_v2.0/frame_aa.html
<!--
####################################################
#                                                  #
# AUTHOR: William Massey                           #
# DATE: 15-feb-2007                                #
#                                                  #
####################################################

Copyright 2007 William Massey

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>

	<meta http-equiv="Refresh" content="43200; url=frame_aa.html">

	<link rel="stylesheet" type="text/css" href="willcool.css" />
	
	<script src="ajax.js" type="text/javascript"></script>
	
	<script language="JavaScript" type="text/javascript">
	function getData1() //repeat this function for each dynamic variable
	{ 
		var req1 = create_request(); 
		req1.onreadystatechange = function()
		{
			document.getElementById("zone1").innerHTML = "0";
			if(req1.readyState == 4)
			{
				var response1 = parseInt(req1.responseText);
				document.getElementById("zone1").innerHTML  = response1;
				document.getElementById("zone1").style.color = '#006699';
				if (response1 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone1").innerHTML  = 'updating';
					document.getElementById("zone1").style.color = '#FFCC00';
				}
				else if (response1 != 2) { // servers online should be 2
					document.getElementById("zone1").style.color = '#FF0000';
				}
				req1 = null;
				response1 = null;				
				setTimeout("getData1()", 304000); //refresh rate in ms
			} else 	{
				document.getElementById("zone1").innerHTML  = 'updating';
				document.getElementById("zone1").style.color = '#FFCC00';
			}
		}	
		req1.open("POST", "frame_aa_get_data.php", true); 
		req1.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req1.send('data_required=servers_online'); 
	} 
	function getData2() //repeat this function for each dynamic variable
	{ 
		var req2 = create_request(); 
		req2.onreadystatechange = function()
		{
			document.getElementById("zone2").innerHTML = "0";
			if(req2.readyState == 4)
			{
				var response2 = parseInt(req2.responseText);
				document.getElementById("zone2").innerHTML  = response2;
				document.getElementById("zone2").style.color = '#006699';
				if (response2 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone2").innerHTML  = 'updating';
					document.getElementById("zone2").style.color = '#FFCC00';
				}
				else if (response2 != 53) { //processes running should be 53
					document.getElementById("zone2").style.color = '#FF0000';
				}
				req2 = null;
				response2 = null;				
				setTimeout("getData2()", 315000); //refresh rate in ms
			} else 	{
				document.getElementById("zone2").innerHTML  = 'updating';
				document.getElementById("zone2").style.color = '#FFCC00';
			}
		}	
		req2.open("POST", "frame_aa_get_data.php", true); 
		req2.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req2.send('data_required=proc_count'); 
	} 
	function getData3() //repeat this function for each dynamic variable
	{ 
		var req3 = create_request(); 
		req3.onreadystatechange = function()
		{
			document.getElementById("zone3").innerHTML = "0";
			if(req3.readyState == 4)
			{
				var response3 = parseInt(req3.responseText);
				document.getElementById("zone3").innerHTML  = response3;
				document.getElementById("zone3").style.color = '#006699';
				if (response3 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone3").innerHTML  = 'updating';
					document.getElementById("zone3").style.color = '#FFCC00';
				}
				else if (response3 != 0) { // full disks should be 0
					document.getElementById("zone3").style.color = '#FF0000';
				}
				req3 = null;
				response3 = null;				
				setTimeout("getData3()", 369000); //refresh rate in ms
			} else 	{
				document.getElementById("zone3").innerHTML  = 'updating';
				document.getElementById("zone3").style.color = '#FFCC00';
			}
		}	
		req3.open("POST", "frame_aa_get_data.php", true); 
		req3.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req3.send('data_required=disk_full'); 
	} 	
	function getData4() //repeat this function for each dynamic variable
	{ 
		var req4 = create_request(); 
		req4.onreadystatechange = function()
		{
			document.getElementById("zone4").innerHTML = "0";
			if(req4.readyState == 4)
			{
				var response4 = parseInt(req4.responseText);
				document.getElementById("zone4").innerHTML  = response4;
				document.getElementById("zone4").style.color = '#006699';
				if (response4 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone4").innerHTML  = 'updating';
					document.getElementById("zone4").style.color = '#FFCC00';
				}
				else if (response4 != 0) { //oracle alerts should be 0
					document.getElementById("zone4").style.color = '#FF0000';
				}
				req4 = null;
				response4 = null;				
				setTimeout("getData4()", 322000); //refresh rate in ms
			} else 	{
				document.getElementById("zone4").innerHTML  = 'updating';
				document.getElementById("zone4").style.color = '#FFCC00';
			}
		}	
		req4.open("POST", "frame_aa_get_data.php", true); 
		req4.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req4.send('data_required=oracle_alerts'); 
	} 
	function getData5() //repeat this function for each dynamic variable
	{ 
		var req5 = create_request(); 
		req5.onreadystatechange = function()
		{
			document.getElementById("zone5").innerHTML = "0";
			if(req5.readyState == 4)
			{
				var response5 = req5.responseText;
				response5=response5.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
				document.getElementById("zone5").innerHTML  = response5;
				document.getElementById("zone5").style.color = '#006699';
				if (response5 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone5").innerHTML  = 'updating';
					document.getElementById("zone5").style.color = '#FFCC00';
				}
				else if (response5 == 999888776) { // status 999888776 = check backup
					document.getElementById("zone5").innerHTML  = 'CHECK BACKUP';
					document.getElementById("zone5").style.color = '#FF0000';
				}
				req5 = null;
				response5 = null;				
				setTimeout("getData5()", 304000); //refresh rate in ms
			} else 	{
				document.getElementById("zone5").innerHTML  = 'updating';
				document.getElementById("zone5").style.color = '#FFCC00';
			}
		}	
		req5.open("POST", "frame_aa_get_data.php", true); 
		req5.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req5.send('data_required=last_backup1'); 
	} 
	function getData19() //repeat this function for each dynamic variable
	{ 
		var req19 = create_request(); 
		req19.onreadystatechange = function()
		{
			document.getElementById("zone19").innerHTML = "0";
			if(req19.readyState == 4)
			{
				var response19 = req19.responseText;
				response19=response19.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
				document.getElementById("zone19").innerHTML  = response19;
				document.getElementById("zone19").style.color = '#006699';
				if (response19 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone19").innerHTML  = 'updating';
					document.getElementById("zone19").style.color = '#FFCC00';
				}				
				if (response19 == 999888776) { // status 999888776 = check backup
					document.getElementById("zone19").innerHTML  = 'CHECK BACKUP';
					document.getElementById("zone19").style.color = '#FF0000';
				}
				req19 = null;
				response19 = null;				
				setTimeout("getData19()", 304000); //refresh rate in ms
			} else 	{
				document.getElementById("zone19").innerHTML  = 'updating';
				document.getElementById("zone19").style.color = '#FFCC00';
			}
		}	
		req19.open("POST", "frame_aa_get_data.php", true); 
		req19.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req19.send('data_required=last_backup2'); 
	} 	
	function getData6() //repeat this function for each dynamic variable
	{ 
		var req6 = create_request(); 
		req6.onreadystatechange = function()
		{
			document.getElementById("zone6").innerHTML = "0";
			if(req6.readyState == 4)
			{
				var response6 = req6.responseText;
				document.getElementById("zone6").innerHTML  = response6;
				document.getElementById("zone6").style.color = '#006699';
				if (response6 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone6").innerHTML  = 'updating';
					document.getElementById("zone6").style.color = '#FFCC00';
				}
				if (response6 == 999888776) { //status 999888776 = UNSUCCESSFUL
					document.getElementById("zone6").innerHTML  = 'CHECK BACKUP';
					document.getElementById("zone6").style.color = '#FF0000';
				}
				if (response6 == 999888775) { //status 999888775 = no backup today
					document.getElementById("zone6").innerHTML  = 'NO BACKUP TODAY';
					document.getElementById("zone6").style.color = '#FF0000';					
				}
				if (response6 == 999888774) { //status 999888774 = in progress
					document.getElementById("zone6").innerHTML  = 'IN PROGRESS';
					document.getElementById("zone6").style.color = '#FF0000';					
				}								
				req6 = null;
				response6 = null;				
				setTimeout("getData6()", 336000); //refresh rate in ms
			} else 	{
				document.getElementById("zone6").innerHTML  = 'updating';
				document.getElementById("zone6").style.color = '#FFCC00';
			}
		}	
		req6.open("POST", "frame_aa_get_data.php", true); 
		req6.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req6.send('data_required=last_status'); 
	} 
	function getData7() //repeat this function for each dynamic variable
	{ 
		var req7 = create_request(); 
		req7.onreadystatechange = function()
		{
			document.getElementById("zone7").innerHTML = "0";
			if(req7.readyState == 4)
			{
				var response7 = req7.responseText;
				document.getElementById("zone7").innerHTML  = response7;
				document.getElementById("zone7").style.color = '#006699';
				if (response7 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone7").innerHTML  = 'updating';
					document.getElementById("zone7").style.color = '#FFCC00';
				}
				if (response7 == 999888776) { //status 999888776 = Not OK
					document.getElementById("zone7").innerHTML  = 'NOT OK';
					document.getElementById("zone7").style.color = '#FF0000';
				}
				req7 = null;
				response7 = null;				
				setTimeout("getData7()", 371000); //refresh rate in ms
			} else 	{
				document.getElementById("zone7").innerHTML  = 'updating';
				document.getElementById("zone7").style.color = '#FFCC00';
			}
		}	
		req7.open("POST", "frame_aa_get_data.php", true); 
		req7.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req7.send('data_required=listener_status'); 
	} 
	function getData8() //repeat this function for each dynamic variable
	{ 
		var req8 = create_request(); 
		req8.onreadystatechange = function()
		{
			document.getElementById("zone8").innerHTML = "0";
			if(req8.readyState == 4)
			{
				var response8 = req8.responseText;
				document.getElementById("zone8").innerHTML  = response8;
				document.getElementById("zone8").style.color = '#006699';
				if (response8 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone8").innerHTML  = 'updating';
					document.getElementById("zone8").style.color = '#FFCC00';
				}
				else if (response8 != 0) { //no. errors should be 0
					document.getElementById("zone8").style.color = '#FF0000';
				}
				req8 = null;
				response8 = null;				
				setTimeout("getData8()", 348000); //refresh rate in ms
			} else 	{
				document.getElementById("zone8").innerHTML  = 'updating';
				document.getElementById("zone8").style.color = '#FFCC00';
			}
		}	
		req8.open("POST", "frame_aa_get_data.php", true); 
		req8.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req8.send('data_required=listener_errors'); 
	} 
	function getData9() //repeat this function for each dynamic variable
	{ 
		var req9 = create_request(); 
		req9.onreadystatechange = function()
		{
			document.getElementById("zone9").innerHTML = "0";
			if(req9.readyState == 4)
			{
				var response9 = req9.responseText;
				response9=response9.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
				document.getElementById("zone9").innerHTML  = response9;
				document.getElementById("zone9").style.color = '#006699';
				if (response9 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone9").innerHTML  = 'updating';
					document.getElementById("zone9").style.color = '#FFCC00';
				}
				if (response9 == 999888776) { // status 999888776 = the duration is incorrect, but this should never happen
					document.getElementById("zone9").innerHTML  = 'CHECK BACKUP';
					document.getElementById("zone9").style.color = '#FF0000';
				}
				req9 = null;
				response9 = null;				
				setTimeout("getData9()", 350000); //refresh rate in ms
			} else 	{
				document.getElementById("zone9").innerHTML  = 'updating';
				document.getElementById("zone9").style.color = '#FFCC00';
			}
		}	
		req9.open("POST", "frame_aa_get_data.php", true); 
		req9.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req9.send('data_required=last_duration1'); 
	} 
	function getData18() //repeat this function for each dynamic variable
	{ 
		var req18 = create_request(); 
		req18.onreadystatechange = function()
		{
			document.getElementById("zone18").innerHTML = "0";
			if(req18.readyState == 4)
			{
				var response18 = req18.responseText;
				response18=response18.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
				document.getElementById("zone18").innerHTML  = response18;
				document.getElementById("zone18").style.color = '#006699';
				if (response18 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone18").innerHTML  = 'updating';
					document.getElementById("zone18").style.color = '#FFCC00';
				}
				if (response18 == 999888776) { // status 999888776 = the duration is incorrect, but this should never happen
					document.getElementById("zone18").innerHTML  = 'CHECK BACKUP';
					document.getElementById("zone18").style.color = '#FF0000';
				}
				req18 = null;
				response18 = null;				
				setTimeout("getData18()", 350000); //refresh rate in ms
			} else 	{
				document.getElementById("zone18").innerHTML  = 'updating';
				document.getElementById("zone18").style.color = '#FFCC00';
			}
		}	
		req18.open("POST", "frame_aa_get_data.php", true); 
		req18.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req18.send('data_required=last_duration2'); 
	} 	
	function getData10() //repeat this function for each dynamic variable
	{ 
		var req10 = create_request(); 
		req10.onreadystatechange = function()
		{
			document.getElementById("zone10").innerHTML = "0";
			if(req10.readyState == 4)
			{
				var response10 = req10.responseText;
				document.getElementById("zone10").innerHTML  = response10+'GB';
				document.getElementById("zone10").style.color = '#006699';
				if (response10 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone10").innerHTML  = 'updating';
					document.getElementById("zone10").style.color = '#FFCC00';
				}
				if (response10 == 999888776) { // status 999888776 = no used space, but this should never happen
					document.getElementById("zone10").innerHTML  = 'CHECK DISKS';
					document.getElementById("zone10").style.color = '#FF0000';
				}
				if (response10 == 999888773) { 
				document.getElementById("zone10").innerHTML  = 'DB OFFLINE';
				document.getElementById("zone10").style.color = '#FF0000';
				}
				req10 = null;
				response10 = null;				
				setTimeout("getData10()", 350000); //refresh rate in ms
			} else 	{
				document.getElementById("zone10").innerHTML  = 'updating';
				document.getElementById("zone10").style.color = '#FFCC00';
			}
		}	
		req10.open("POST", "frame_aa_get_data.php", true); 
		req10.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req10.send('data_required=used_space'); 
	} 
	function getData11() //repeat this function for each dynamic variable
	{ 
		var req11 = create_request(); 
		req11.onreadystatechange = function()
		{
			document.getElementById("zone11").innerHTML = "0";
			if(req11.readyState == 4)
			{
				var response11 = req11.responseText;
				response11=response11.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
				document.getElementById("zone11").innerHTML  = response11+'%';
				document.getElementById("zone11").style.color = '#006699';
				if (response11 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone11").innerHTML  = 'updating';
					document.getElementById("zone11").style.color = '#FFCC00';
				}
				else if (response11 <5) { // less than 5% free tablespace is bad
					document.getElementById("zone11").style.color = '#FF0000';
				}
				if (response11 == 999888773) { 
				document.getElementById("zone11").innerHTML  = 'DB OFFLINE';
				document.getElementById("zone11").style.color = '#FF0000';
				}
				req11 = null;
				response11 = null;				
				setTimeout("getData11()", 350000); //refresh rate in ms
			} else 	{
				document.getElementById("zone11").innerHTML  = 'updating';
				document.getElementById("zone11").style.color = '#FFCC00';
			}
		}	
		req11.open("POST", "frame_aa_get_data.php", true); 
		req11.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req11.send('data_required=free_space'); 
	} 
	function getData12() //repeat this function for each dynamic variable
	{ 
		var req12 = create_request(); 
		req12.onreadystatechange = function()
		{
			document.getElementById("zone12").innerHTML = "0";
			if(req12.readyState == 4)
			{
				var response12 = req12.responseText;
				response12=response12.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
				document.getElementById("zone12").innerHTML  = response12;
				document.getElementById("zone12").style.color = '#006699';
				if (response12 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone12").innerHTML  = 'updating';
					document.getElementById("zone12").style.color = '#FFCC00';
				}
				if (response12 == 0) { // we're not bothered how many logons there are
					document.getElementById("zone12").style.color = '#FF0000';
				}
				if (response12 == 999888773) { 
				document.getElementById("zone12").innerHTML  = 'DB OFFLINE';
				document.getElementById("zone12").style.color = '#FF0000';
				}
				req12 = null;
				response12 = null;				
				setTimeout("getData12()", 350000); //refresh rate in ms
			} else 	{
				document.getElementById("zone12").innerHTML  = 'updating';
				document.getElementById("zone12").style.color = '#FFCC00';
			}
		}	
		req12.open("POST", "frame_aa_get_data.php", true); 
		req12.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req12.send('data_required=server1_logons'); 
	} 
	function getData13() //repeat this function for each dynamic variable
	{ 
		var req13 = create_request(); 
		req13.onreadystatechange = function()
		{
			document.getElementById("zone13").innerHTML = "0";
			if(req13.readyState == 4)
			{
				var response13 = req13.responseText;
				response13=response13.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
				document.getElementById("zone13").innerHTML  = response13;
				document.getElementById("zone13").style.color = '#006699';
				if (response13 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone13").innerHTML  = 'updating';
					document.getElementById("zone13").style.color = '#FFCC00';
				}
				if (response13 == 0) { // we're not bothered how many logons there are
					document.getElementById("zone13").style.color = '#FF0000';
				}
				if (response13 == 999888773) { 
				document.getElementById("zone13").innerHTML  = 'DB OFFLINE';
				document.getElementById("zone13").style.color = '#FF0000';
				}
				req13 = null;
				response13 = null;				
				setTimeout("getData13()", 350000); //refresh rate in ms
			} else 	{
				document.getElementById("zone13").innerHTML  = 'updating';
				document.getElementById("zone13").style.color = '#FFCC00';
			}
		}	
		req13.open("POST", "frame_aa_get_data.php", true); 
		req13.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req13.send('data_required=server2_logons'); 
	} 
	function getData14() //repeat this function for each dynamic variable
	{ 
		var req14 = create_request(); 
		req14.onreadystatechange = function()
		{
			document.getElementById("zone14").innerHTML = "0";
			if(req14.readyState == 4)
			{
				var response14 = req14.responseText;
				response14=response14.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
				document.getElementById("zone14").innerHTML  = response14+'ms';
				document.getElementById("zone14").style.color = '#006699';
				if (response14 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone14").innerHTML  = 'updating';
					document.getElementById("zone14").style.color = '#FFCC00';
				}
				if (response14 > 5000) { // we can set this after monitoring for a while
					document.getElementById("zone14").style.color = '#FF0000';
				}
				if (response14 == 999888773) { 
				document.getElementById("zone14").innerHTML  = 'DB OFFLINE';
				document.getElementById("zone14").style.color = '#FF0000';
				}
				req14 = null;
				response14 = null;				
				setTimeout("getData14()", 350000); //refresh rate in ms
			} else 	{
				document.getElementById("zone14").innerHTML  = 'updating';
				document.getElementById("zone14").style.color = '#FFCC00';
			}
		}	
		req14.open("POST", "frame_aa_get_data.php", true); 
		req14.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req14.send('data_required=server1_resptime'); 
	} 
	function getData15() //repeat this function for each dynamic variable
	{ 
		var req15 = create_request(); 
		req15.onreadystatechange = function()
		{
			document.getElementById("zone15").innerHTML = "0";
			if(req15.readyState == 4)
			{
				var response15 = req15.responseText;
				response15=response15.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
				document.getElementById("zone15").innerHTML  = response15+'ms';
				document.getElementById("zone15").style.color = '#006699';
				if (response15 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone15").innerHTML  = 'updating';
					document.getElementById("zone15").style.color = '#FFCC00';
				}
				if (response15 > 5000) { // we can set this after monitoring for a while
					document.getElementById("zone15").style.color = '#FF0000';
				}
				if (response15 == 999888773) { 
				document.getElementById("zone15").innerHTML  = 'DB OFFLINE';
				document.getElementById("zone15").style.color = '#FF0000';
				}
				req15 = null;
				response15 = null;				
				setTimeout("getData15()", 350000); //refresh rate in ms
			} else 	{
				document.getElementById("zone15").innerHTML  = 'updating';
				document.getElementById("zone15").style.color = '#FFCC00';
			}
		}	
		req15.open("POST", "frame_aa_get_data.php", true); 
		req15.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req15.send('data_required=server2_resptime'); 
	} 
	function getData16() //repeat this function for each dynamic variable
	{ 
		var req16 = create_request(); 
		req16.onreadystatechange = function()
		{
			document.getElementById("zone16").innerHTML = "0";
			if(req16.readyState == 4)
			{
				var response16 = req16.responseText;
				response16=response16.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
				document.getElementById("zone16").innerHTML  = response16+'%';
				document.getElementById("zone16").style.color = '#006699';
				if (response16 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone16").innerHTML  = 'updating';
					document.getElementById("zone16").style.color = '#FFCC00';
				}
				else if (response16 <5) { // less than 5% shared sga is bad
					document.getElementById("zone16").style.color = '#FF0000';
				}
				if (response16 == 999888773) { 
				document.getElementById("zone16").innerHTML  = 'DB OFFLINE';
				document.getElementById("zone16").style.color = '#FF0000';
				}
				req16 = null;
				response16 = null;				
				setTimeout("getData16()", 350000); //refresh rate in ms
			} else 	{
				document.getElementById("zone16").innerHTML  = 'updating';
				document.getElementById("zone16").style.color = '#FFCC00';
			}
		}	
		req16.open("POST", "frame_aa_get_data.php", true); 
		req16.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req16.send('data_required=server1_shared'); 
	} 
	function getData17() //repeat this function for each dynamic variable
	{ 
		var req17 = create_request(); 
		req17.onreadystatechange = function()
		{
			document.getElementById("zone17").innerHTML = "0";
			if(req17.readyState == 4)
			{
				var response17 = req17.responseText;
				response17=response17.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
				document.getElementById("zone17").innerHTML  = response17+'%';
				document.getElementById("zone17").style.color = '#006699';
				if (response17 == 999888777) { // file is prob being written to, try later
					document.getElementById("zone17").innerHTML  = 'updating';
					document.getElementById("zone17").style.color = '#FFCC00';
				}
				else if (response17 <5) { // less than 5% shared sga is bad
					document.getElementById("zone17").style.color = '#FF0000';
				}
				if (response17 == 999888773) { 
				document.getElementById("zone17").innerHTML  = 'DB OFFLINE';
				document.getElementById("zone17").style.color = '#FF0000';
				}
				req17 = null;
				response17 = null;				
				setTimeout("getData17()", 350000); //refresh rate in ms
			} else 	{
				document.getElementById("zone17").innerHTML  = 'updating';
				document.getElementById("zone17").style.color = '#FFCC00';
			}
		}	
		req17.open("POST", "frame_aa_get_data.php", true); 
		req17.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req17.send('data_required=server2_shared'); 
	} 										
	</script>

</head>

<body onload="getData1();getData2();getData3();getData4();getData5();getData6();getData7();getData8();getData9();getData10();getData11();getData12();getData13();getData14();getData15();getData16();getData17();getData18();getData19();">
	
	<Table height=100% width=100% >
	
	<tr>
		<td valign=top>
			<h1> AA Database </h1>
			<br>
			Servers online (should be 2): <div class="x" id="zone1"></div>
			<br>
			ORA_ Processes running (should be 53): <div class="x" id="zone2"></div>
			<br>
			Number of disks over 90% full: <div class="x" id="zone3"></div>
			<br>
			Oracle critical alerts today: <div class="x" id="zone4"></div>
			<br>
			Oracle Listener status: <div class="x" id="zone7"></div>
			<br>
			Oracle Listener errors today: <div class="x" id="zone8"></div>
			<br>
			Database size: <div class="x" id="zone10"></div>
			<br>												
			Free Tablespace remaining: <div class="x" id="zone11"></div>
			<br>
			Today's RMAN backup status: <div class="x" id="zone6"></div>
			<br>
			Last RMAN backup duration: <div class="x" id="zone9"></div>, <div class="x" id="zone18"></div>
			<br>
			Last RMAN backup finish time: <div class="x" id="zone5"></div>, <div class="x" id="zone19"></div>
			<br>
			Current logons count: <div class="x" id="zone12"></div>, <div class="x" id="zone13"></div>
			<br>	
			Transaction response time: <div class="x" id="zone14"></div>, <div class="x" id="zone15"></div>
			<br>						
			SGA Shared Pool free: <div class="x" id="zone16"></div>, <div class="x" id="zone17"></div>
			<br>	
		</td>
	</tr>
	</table>
</body>

</html>
Return current item: WillCool