|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/var/www/html/networkmonitor/ |
Upload File : |
<?
#START
###### This Program is copyright Sapphire Research and Development co.,ltd ########
#########################################################
$ApplicationName= "ServerMonitor";
$module_code = "report";
$process_id = "display";
$VERSION = "9.1";
$BypassAPP= true;
#########################################################
#Developer::Pairoj
#DateCreate::5/08/2007
#LastUpdate::6/08/2007
#DatabaseTable::
#END
#########################################################
session_start();
set_time_limit(1000);
include("config.inc.php");
include("function.inc.php");
if($_SESSION[refreshtime] == ""){
$_SESSION[refreshtime] = 180;
}else{
$_SESSION[refreshtime] = $selRefreshtime ;
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<meta http-equiv="refresh" content="<?=$_SESSION[refreshtime]?>">
<title>NMS-Hardware</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="nms_style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><? include("header.php"); ?>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="150" valign="top"><? include("left_menu.php"); ?></td>
<td valign="top" style="padding:5px"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #666666">
<tr>
<td height="25" colspan="8"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="top_table">
<tr>
<td height="25">Hardware</td>
<td align="right">Last Update : <? echo intval(date("d"))." ".$mname[intval(date("m"))]." ".date("Y")." ".date("H").":".date("i").":".date("s");?></td>
</tr>
</table></td>
</tr>
<tr>
<td width="16%" align="center" valign="top" class="table_label">Device</td>
<td width="7%" align="center" valign="top" class="table_label">status</td>
<td width="18%" align="center" valign="top" class="table_label">Functional</td>
<td width="14%" align="center" valign="top" class="table_label">Local IP </td>
<td width="19%" align="center" valign="top" class="table_label">Internet IP </td>
<td width="8%" align="center" valign="top" class="table_label"><a href="hw.php?hw=cpu">CPU</a></td>
<td width="9%" align="center" valign="top" class="table_label"><a href="hw.php?hw=Memory">Memory</a></td>
<td width="9%" align="center" valign="top" class="table_label">HDD</td>
</tr>
<?
$n=1;
foreach($arr_ip AS $key=>$values){
$url = "http://$values[localIP]/networkmonitor/system.inc.php?display=ON";
$arr_result = @file($url);
$pingserver = pingDomain($values[localIP]);
if( $pingserver == -1){
$status_server++;
}
if ($n % 2) $bg="table_data1"; else $bg="table_data2";
?>
<tr class="<?=$bg?>">
<td valign="top"><?=$key?><br>
[
<?=$values[hardware]?>
]</td>
<td align="center" valign="top"><?=server_status($arr_result[0],$arr_result[1],$arr_result[2] )?></td>
<td align="center" valign="top"><?=$values[functional]?></td>
<td align="center" valign="top"><?=$values[localIP]?></td>
<td align="center" valign="top"><?=$values[IPcaption]?></td>
<td align="center" valign="top"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="50" height="50" id="harddisk" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="cpu.swf?p=<?=$arr_result[0]?>" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="cpu.swf?p=<?=$arr_result[0]?>" quality="high" wmode="transparent" bgcolor="#ffffff" width="50" height="50" name="harddisk" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object><?=even_status($arr_result[0])?></td>
<td align="center" valign="top"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="50" height="50" id="harddisk" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="memory.swf?p=<?=$arr_result[1]?>" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="memory.swf?p=<?=$arr_result[1]?>" quality="high" wmode="transparent" bgcolor="#ffffff" width="50" height="50" name="harddisk" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object><?=even_status($arr_result[1])?></td>
<td align="center" valign="top"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="50" height="50" id="harddisk" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="harddisk.swf?p=<?=$arr_result[2]?>" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="harddisk.swf?p=<?=$arr_result[2]?>" quality="high" wmode="transparent" bgcolor="#ffffff" width="50" height="50" name="harddisk" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object><?=even_status_hdd($arr_result[2])?></td>
</tr>
<?
$n++;
} // end foreach
?>
<tr>
<td valign="top" bgcolor="#666666"> </td>
<td valign="top" bgcolor="#666666"> </td>
<td valign="top" bgcolor="#666666"> </td>
<td valign="top" bgcolor="#666666"> </td>
<td valign="top" bgcolor="#666666"> </td>
<td valign="top" bgcolor="#666666"> </td>
<td valign="top" bgcolor="#666666"> </td>
<td valign="top" bgcolor="#666666"> </td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>