- <?php
- include ("conn.php");
- include ("head.php");
- echo "<b>您选择的时间为“当天视图“查询,查询的省份为”甘肃“,请选择查询的服务器:</b><br>";
- include("view_gansu_day_server.php");
- ?>
- H、gansu_day_web.php
- <?php
- include ("conn.php");
- include ("head.php");
- echo "<b>您选择的时间为“当天视图”查询,查询的省份为“甘肃”,查询的服务器为“甘肃WEB”,视图如下:</b><br>";
- ?>
- <font size="3" color="red"><b>甘肃WEB的硬盘使用率</b><br>
- <img src="images/gansu_web_disk-<?echo date('ymd');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的CPU使用率</b><br>
- <img src="images/gansu_web_cpu-<?echo date('ymd');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的I/O使用率</b><br>
- <img src="images/gansu_web_io-<?echo date('ymd');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的Load使用率</b><br>
- <img src="images/gansu_web_load-<?echo date('ymd');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的内存使用率</b><br>
- <img src="images/gansu_web_memory-<?echo date('ymd');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的用户登录数使用率</b><br>
- <img src="images/gansu_web_user-<?echo date('ymd');?>.png" width="500" height="400"><br>
- <?php
- include ("conn.php");
- include ("head.php");
- echo "<b>您选择的时间为“当月视图“查询,查询的省份为”甘肃“,请选择查询的服务器:</b><br>";
- include("view_gansu_month_server.php");
- ?>
此界面主要展示甘肃省份查询月视图的包头
- <?php
- include ("conn.php");
- include ("head.php");
- echo "<b>您选择的时间为“当月视图”查询,查询的省份为“甘肃”,查询的服务器为“甘肃WEB”,视图如下:</b><br>";
- ?>
- <font size="3" color="red"><b>甘肃WEB的硬盘使用率</b><br>
- <img src="images/gansu_web_disk-<?echo date('ym');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的CPU使用率</b><br>
- <img src="images/gansu_web_cpu-<?echo date('ym');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的I/O使用率</b><br>
- <img src="images/gansu_web_io-<?echo date('ym');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的Load使用率</b><br>
- <img src="images/gansu_web_load-<?echo date('ym');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的内存使用率</b><br>
- <img src="images/gansu_web_memory-<?echo date('ym');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的用户登录数使用率</b><br>
- <img src="images/gansu_web_user-<?echo date('ym');?>.png" width="500" height="400"><br>
- <?php
- include ("conn.php");
- include ("head.php");
- echo "<b>您选择的时间为“当年视图“查询,查询的省份为”甘肃“,请选择查询的服务器:</b><br>";
- include("view_gansu_year_server.php");
- ?>
此页面主要展示甘肃省份查询年视图的包头
- <?php
- include ("conn.php");
- include ("head.php");
- echo "<b>您选择的时间为“当年视图”查询,查询的省份为“甘肃”,查询的服务器为“甘肃WEB”,视图如下:</b><br>";
- ?>
- <font size="3" color="red"><b>甘肃WEB的硬盘使用率</b><br>
- <img src="images/gansu_web_disk-<?echo date('Y');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的CPU使用率</b><br>
- <img src="images/gansu_web_cpu-<?echo date('Y');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的I/O使用率</b><br>
- <img src="images/gansu_web_io-<?echo date('Y');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的Load使用率</b><br>
- <img src="images/gansu_web_load-<?echo date('Y');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的内存使用率</b><br>
- <img src="images/gansu_web_memory-<?echo date('Y');?>.png" width="500" height="400"><br>
- <font size="3" color="red"><b>甘肃WEB的用户登录数使用率</b><br>
- <img src="images/gansu_web_user-<?echo date('Y');?>.png" width="500" height="400"><br>
- <?php
- include("conn.php");
- include("head.php");
- include("head_device.php");
- ?>
- <table border="1" cellspacing="0" >
- <tr>
- <th width="55">编号</th>
- <th width="100">设备名称</th>
- <th width="120">设备IP</th>
- <th width="210">设备MAC</th>
- <th width="100">设备类型</th>
- <th width="100">机房名称</th>
- <th width="85">机架名称</th>
- <th width="80">机架位置</th>
- <th width="100">财产编号</th>
- <th width="100">设备状态</th>
- <th width="100">设备价格</th>
- </tr>
- </table>
- <?
- $SQL="SELECT * FROM `device` order by id desc";
- $query=mysql_query($SQL);
- while($row=mysql_fetch_array($query)){
- ?>
- <table border="1" cellspacing="0" cellpadding="0">
- <tr>
- <td width="55"><?=$row[id]?> </td>
- <td width="100"><?=$row[name]?></td>
- <td width="120"><?=$row[ip]?> </td>
- <td width="220"><?=$row[mac]?></td>
- <td width="100"><?=$row[type]?></td>
- <td width="110"><?=$row[jifang_name]?></td>
- <td width="90"><?=$row[raw_name]?></td>
- <td width="80"><?=$row[raw_location]?></td>
- <td width="100"><?=$row[assets_code]?></td>
- <td width="100"><?=$row[state]?></td>
- <td width="100"><?=$row[price]?></td>
- </tr>
- </table>
- <?
- }
- ?>
- <?php
- include("conn.php");
- include("head.php");
- include("province.php");
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>用户登录系统</title>
- <style>
- <!--
- body{margin:0px auto;
- width:800px;
- }
- #main{width:350px;
- padding:10px;
- margin:30px auto;
- border:1px solid #00FFFF;
- height:150px;
- }
- -->
- </style>
- </head>
- <body>
- <div id="main"><br /><br />
- <form id="form1" name="userlogin" method="get" action="manage1.php">
- <label>用户名:</label>
- <input type="text" name="username" />
- <br /><br />
- <label> 密码:</label>
- <input type="password" name="password" />
- <br /><br />
- <input name="submit" type="submit" value="提交" />
- <input name="reset" type="reset" value="重置" />
- </form>
- </div>
- </body>
- </html>
- <?php
- session_start();
- $username= $_GET ["username"];
- $password= $_GET["password"];
- $pass="admin";
- $user="admin";
- if($username!=$user){
- echo "<script>alert('用户名输入输入错误,请重新输入用户名.');location='login.html';</script>";
- }
- elseif($password!=$pass){
- echo "<script>alert('密码输入错误,请重新输入密码');location='login.html';</script>";
- }
- else{
- echo "<script>
- alert('登录成功!');
- location='list.php';</script>";
- $_SESSION["admin"]=$username;
- }
- ?>
- <b>当前已经被监控的省份:<a href="gansu.php">甘肃</a> | <a href="tianjing.php">天津</a> | <a href="guangxi.php">广西</a>| <a href="guizhou.php">贵州</a>| <a href="hainan.php">海南</a>| <a href="hebei.php">河北</a>| <a href="hunan.php">湖南</a> | <a href="qinghai.php">青海</a> | <a href="xinjiang.php">新疆</a> | <a href="henan.php">河南</a> | <a href="xizang.php">西藏</a> | <a href="baotou.php">包头</a> | <a href="hubei.php">湖北</a> | <a href="jiangxi.php">江西</a> | <a href="ningxia.php">宁夏</a> | <a href="shanxi.php">陕西</a></b><br>
- <b><a href="gansu_day_view.php">甘肃</a> | <a href="tianjing_day_view.php">天津</a> | <a href="guangxi_day_view.php">广西</a>| <a href="guizhou_day_view.php">贵州</a>| <a href="hainan_day_view.php">海南</a>| <a href="hebei_day_view.php">河北</a>| <a href="hunan_day_view.php">湖南</a> | <a href="qinghai_day_view.php">青海</a> | <a href="xinjiang_day_view.php">新疆</a> | <a href="xizang_day_view.php">西藏</a> | <a href="baotou_day_view.php">包头</a> | <a href="hubei_day_view.php">湖北</a> | <a href="jiangxi_day_view.php">江西</a> | <a href="ningxia_day_view.php">宁夏</a> | <a href="henan_day_view.php">河南</a>| <a href="shanxi_day_view.php">陕西</a></b><br>
- <b><a href="gansu_day_web.php">甘肃WEB</a> | <a href="gansu_day_yinqing.php">甘肃引擎</a> | <a href="gansu_day_jiaohuan.php">甘肃交换</a>| <a href="gansu_day_beiyong.php">甘肃备用</a>| <a href="gansu_day_database.php">甘肃数据库</a></b><br>
- T、view_gansu_month.php
- <b><a href="gansu_month_web.php">甘肃WEB</a> | <a href="gansu_month_yinqing.php">甘肃引擎</a> | <a href="gansu_month_jiaohuan.php">甘肃交换</a>| <a href="gansu_month_beiyong.php">甘肃备用</a>| <a href="gansu_month_database.php">甘肃数据库</a></b><br>
- <b><a href="gansu_year_web.php">甘肃WEB</a> | <a href="gansu_year_yinqing.php">甘肃引擎</a> | <a href="gansu_year_jiaohuan.php">甘肃交换</a>| <a href="gansu_year_beiyong.php">甘肃备用</a>| <a href="gansu_year_database.php">甘肃数据库</a></b><br>
- <b>请按选择查询的时间:<a href="day.php">当天视图</a> | <a href="month.php">当月视图</a> | <a href="year.php">当年视图</a></b><br>
- <b><a href="gansu_warn.php">甘肃</a> | <a href="tianjing_warn.php">天津</a> | <a href="guangxi_warn.php">广西</a>| <a href="guizhou_warn.php">贵州</a>| <a href="hainan_warn.php">海南</a>| <a href="hebei_warn.php">河北</a>| <a href="hunan_warn.php">湖南</a> | <a href="qinghai_warn.php">青海</a> | <a href="xinjiang_warn.php">新疆</a> | <a href="xizang_warn.php">西藏</a> | <a href="baotou_warn.php">包头</a> | <a href="hubei_warn.php">湖北</a> | <a href="jiangxi_warn.php">江西</a> | <a href="ningxia_warn.php">宁夏</a> | <a href="henan_warn.php">河南</a>| <a href="shanxi_warn.php">陕西</a></b><br>
下一篇文章地址:
运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统(七)
http://dl528888.blog.51cto.com/2382721/1035335