运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统(五)
4、监控视图
- <?php
- include("conn.php");
- include("head.php");
- include("head_device.php");
- ?>
- <?php
- include("conn.php");
- include("head.php");
- if($_POST['submit']){
- $sql="insert into device values ('','$_POST[name]','$_POST[ip]','$_POST[mac]','$_POST[type]','$_POST[jifang_name]','$_POST[raw_name]','$_POST[raw_location]','$_POST[assets_code]','$_POST[state]','$_POST[price]')";
- mysql_query($sql);
- echo "<script language=\"javascript\">alert('添加成功');history.go(-1)</script>";
- }
- ##点击完提交后,就进行添加并返回添加成功按键
- include("head_device.php");
- ?>
- <SCRIPT language=javascript>
- function CheckPost()
- {
- if (myform.name.value=="")
- {
- alert("请填写设备名称");
- myform.name.focus();
- return false;
- }
- if (myform.ip.value.length<5)
- {
- alert("设备ip不能少于5个字符");
- myform.ip.focus();
- return false;
- }
- if (myform.mac.value.length<23)
- {
- alert("设备mac不能少于23位");
- myform.mac.focus();
- return false;
- }
- if (myform.type.value=="")
- {
- alert("请填写设备类型");
- myform.type.focus();
- return false;
- }
- if (myform.jifang_name.value=="")
- {
- alert("请填写机房名称");
- myform.jifang_name.focus();
- return false;
- }
- if (myform.raw_name.value=="")
- {
- alert("请填写机架名称");
- myform.raw_name.focus();
- return false;
- }
- if (myform.raw_location.value=="")
- {
- alert("请填写设备位置");
- myform.raw_location.focus();
- return false;
- }
- if (myform.assets_code.value=="")
- {
- alert("请填写财产编号");
- myform.assets_code.focus();
- return false;
- }
- if (myform.state.value=="")
- {
- alert("请填写设备状态");
- myform.state.focus();
- return false;
- }
- if (myform.price.value=="")
- {
- alert("请填写设备价格");
- myform.price.focus();
- return false;
- }
- }
- </SCRIPT>
- ##使用javascript方式进行约束各自的值
- <form action="add_device.php" method="post" name="myform" onsubmit="return CheckPost();">
- 设备名称:<input type="text" size="10" name="name" /><br>
- 设备I P: <input type="text" size="10" name="ip" /><br/>
- 设备MAC: <input type="text" size="10" name="mac" /><br/>
- 设备类型:<input type="text" size="10" name="type" /><br/>
- 机房名称:<input type="text" size="10" name="jifang_name" /><br/>
- 机架名称:<input type="text" size="10" name="raw_name" /><br/>
- 机架位置:<input type="text" size="10" name="raw_location" /><br/>
- 财产编号:<input type="text" size="10" name="assets_code" /><br/>
- 设备状态:<input type="text" size="10"name="state" /><br/>
- 设备价格:<input type="text" size="10" name="price" /><br/>
- <input type="submit" name="submit" value="新增"/>
- <input name="reset" type="reset" value="重置" />
- </form>
- ##使用html表单
- <?php
- $conn = @ mysql_connect("1.1.1.1", "root", "****") or die("数据库链接错误");
- mysql_select_db("monitor", $conn);
- mysql_query("set names 'GBK'"); //使用GBK中文编码;
- ##连接的数据库ip、用户名与密码,如果连接不成功,就返回数据库连接错误
- #function htmtocode($content) {
- # $content = str_replace("\n", "<br>", str_replace(" ", " ", $content));
- # return $content;
- #}
- function htmtocode($status) {
- str_replace("working", "test", $status);
- return $status;
- }
- #function
- //$content=str_replace("'","‘",$content);
- //htmlspecialchars();
- ?>
- <?php
- include("conn.php");
- include("head.php");
- include("province.php");
- ?>
- <font size="3" color="red"><B>应用服务</B></font>
- <table border="1" cellspacing="0" >
- <tr>
- <th width="55">编号</th>
- <th width="55">省份</th>
- <th width="160">被监控服务器</th>
- <th width="100">IP</th>
- <th width="100">监控服务器</th>
- <th width="130">监控服务</th>
- <th width="70">当前状态</th>
- <th width="100">监控时间</th>
- </tr>
- </table>
- <?
- $SQL="SELECT * FROM `gansu_service` order by date desc limit 0,13";
- $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="55"><?=$row[province]?></td>
- <td width="160"><?=$row[server]?> </td>
- <td width="100"><?=$row[ip]?></td>
- <td width="100"><?=$row[monitor_server]?></td>
- <td width="130"><?=$row[service]?></td>
- <td width="70"><?=$row[status]?></td>
- <td width="100"><?=$row[date]?></td>
- </tr>
- </table>
- <?
- }
- ?>
- <font size="3" color="red"><B>硬盘使用率</B></font>
- <table border="1" cellspacing="0" >
- <tr>
- <th width="55">编号</th>
- <th width="55">省份</th>
- <th width="160">被监控服务器</th>
- <th width="100">IP</th>
- <th width="100">监控服务器</th>
- <th width="130">监控服务</th>
- <th width="70">阀值</th>
- <th width="90">当期分区</th>
- <th width="70">当前值</th>
- <th width="70">当前状态</th>
- <th width="100">监控时间</th>
- </tr>
- </table>
- <?
- $SQL="SELECT * FROM `gansu_disk` order by date desc limit 0,5";
- $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="55"><?=$row[province]?></td>
- <td width="160"><?=$row[server]?> </td>
- <td width="100"><?=$row[ip]?></td>
- <td width="100"><?=$row[monitor_server]?></td>
- <td width="130"><?=$row[service]?></td>
- <td width="70"><?=$row[alert]?></td>
- <td width="90"><?=$row[partition]?></td>
- <td width="70"><?=$row[value]?></td>
- <td width="70"><?=$row[status]?></td>
- <td width="100"><?=$row[date]?></td>
- </tr>
- </table>
- <?
- }
- ?>
- <font size="3" color="red"><B>CPU使用率</B></font>
- <table border="1" cellspacing="0" >
- <tr>
- <th width="55">编号</th>
- <th width="55">省份</th>
- <th width="160">被监控服务器</th>
- <th width="100">IP</th>
- <th width="100">监控服务器</th>
- <th width="130">监控服务</th>
- <th width="70">阀值</th>
- <th width="70">当前值</th>
- <th width="70">当前状态</th>
- <th width="100">监控时间</th>
- </tr>
- </table>
- <?
- $SQL="SELECT * FROM `gansu_cpu` order by date desc limit 0,5";
- $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="55"><?=$row[province]?></td>
- <td width="160"><?=$row[server]?> </td>
- <td width="100"><?=$row[ip]?></td>
- <td width="100"><?=$row[monitor_server]?></td>
- <td width="130"><?=$row[service]?></td>
- <td width="70"><?=$row[alert]?></td>
- <td width="70"><?=$row[value]?></td>
- <td width="70"><?=$row[status]?></td>
- <td width="100"><?=$row[date]?></td>
- </tr>
- </table>
- <?
- }
- ?>
- <font size="3" color="red"><B>硬件错误信息</B></font>
- <table border="1" cellspacing="0" >
- <tr>
- <th width="55">编号</th>
- <th width="55">省份</th>
- <th width="160">被监控服务器</th>
- <th width="100">IP</th>
- <th width="100">监控服务器</th>
- <th width="130">监控服务</th>
- <th width="70">阀值</th>
- <th width="70">当前值</th>
- <th width="70">当前状态</th>
- <th width="100">监控时间</th>
- </tr>
- </table>
- <?
- $SQL="SELECT * FROM `gansu_hardware` order by date desc limit 0,5";
- $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="55"><?=$row[province]?></td>
- <td width="160"><?=$row[server]?> </td>
- <td width="100"><?=$row[ip]?></td>
- <td width="100"><?=$row[monitor_server]?></td>
- <td width="130"><?=$row[service]?></td>
- <td width="70"><?=$row[alert]?></td>
- <td width="70"><?=$row[value]?></td>
- <td width="70"><?=$row[status]?></td>
- <td width="100"><?=$row[date]?></td>
- </tr>
- </table>
- <?
- }
- ?>
- <font size="3" color="red"><B>I/O使用率</B></font>
- <table border="1" cellspacing="0" >
- <tr>
- <th width="55">编号</th>
- <th width="55">省份</th>
- <th width="160">被监控服务器</th>
- <th width="100">IP</th>
- <th width="100">监控服务器</th>
- <th width="130">监控服务</th>
- <th width="70">阀值</th>
- <th width="70">当前值</th>
- <th width="70">当前状态</th>
- <th width="100">监控时间</th>
- </tr>
- </table>
- <?
- $SQL="SELECT * FROM `gansu_io` order by date desc limit 0,5";
- $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="55"><?=$row[province]?></td>
- <td width="160"><?=$row[server]?> </td>
- <td width="100"><?=$row[ip]?></td>
- <td width="100"><?=$row[monitor_server]?></td>
- <td width="130"><?=$row[service]?></td>
- <td width="70"><?=$row[alert]?></td>
- <td width="70"><?=$row[value]?></td>
- <td width="70"><?=$row[status]?></td>
- <td width="100"><?=$row[date]?></td>
- </tr>
- </table>
- <?
- }
- ?>
- <font size="3" color="red"><B>15分钟内的负载</B></font>
- <table border="1" cellspacing="0" >
- <tr>
- <th width="55">编号</th>
- <th width="55">省份</th>
- <th width="160">被监控服务器</th>
- <th width="100">IP</th>
- <th width="100">监控服务器</th>
- <th width="130">监控服务</th>
- <th width="70">阀值</th>
- <th width="70">当前值</th>
- <th width="70">当前状态</th>
- <th width="100">监控时间</th>
- </tr>
- </table>
- <?
- $SQL="SELECT * FROM `gansu_load` order by date desc limit 0,5";
- $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="55"><?=$row[province]?></td>
- <td width="160"><?=$row[server]?> </td>
- <td width="100"><?=$row[ip]?></td>
- <td width="100"><?=$row[monitor_server]?></td>
- <td width="130"><?=$row[service]?></td>
- <td width="70"><?=$row[alert]?></td>
- <td width="70"><?=$row[value]?></td>
- <td width="70"><?=$row[status]?></td>
- <td width="100"><?=$row[date]?></td>
- </tr>
- </table>
- <?
- }
- ?>
- <font size="3" color="red"><B>内存使用率</B></font>
- <table border="1" cellspacing="0" >
- <tr>
- <th width="55">编号</th>
- <th width="55">省份</th>
- <th width="160">被监控服务器</th>
- <th width="100">IP</th>
- <th width="100">监控服务器</th>
- <th width="130">监控服务</th>
- <th width="70">阀值</th>
- <th width="70">当前值</th>
- <th width="70">当前状态</th>
- <th width="100">监控时间</th>
- </tr>
- </table>
- <?
- $SQL="SELECT * FROM `gansu_memory` order by date desc limit 0,10";
- $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="55"><?=$row[province]?></td>
- <td width="160"><?=$row[server]?> </td>
- <td width="100"><?=$row[ip]?></td>
- <td width="100"><?=$row[monitor_server]?></td>
- <td width="130"><?=$row[service]?></td>
- <td width="70"><?=$row[alert]?></td>
- <td width="70"><?=$row[value]?></td>
- <td width="70"><?=$row[status]?></td>
- <td width="100"><?=$row[date]?></td>
- </tr>
- </table>
- <?
- }
- ?>
- <font size="3" color="red"><B>日志错误信息</B></font>
- <table border="1" cellspacing="0" >
- <tr>
- <th width="55">编号</th>
- <th width="55">省份</th>
- <th width="160">被监控服务器</th>
- <th width="100">IP</th>
- <th width="100">监控服务器</th>
- <th width="130">监控服务</th>
- <th width="70">阀值</th>
- <th width="70">当前值</th>
- <th width="70">当前状态</th>
- <th width="100">监控时间</th>
- </tr>
- </table>
- <?
- $SQL="SELECT * FROM `gansu_message` order by date desc limit 0,5";
- $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="55"><?=$row[province]?></td>
- <td width="160"><?=$row[server]?> </td>
- <td width="100"><?=$row[ip]?></td>
- <td width="100"><?=$row[monitor_server]?></td>
- <td width="130"><?=$row[service]?></td>
- <td width="70"><?=$row[alert]?></td>
- <td width="70"><?=$row[value]?></td>
- <td width="70"><?=$row[status]?></td>
- <td width="100"><?=$row[date]?></td>
- </tr>
- </table>
- <?
- }
- ?>
- <font size="3" color="red"><B>用户登录数</B></font>
- <table border="1" cellspacing="0" >
- <tr>
- <th width="55">编号</th>
- <th width="55">省份</th>
- <th width="160">被监控服务器</th>
- <th width="100">IP</th>
- <th width="100">监控服务器</th>
- <th width="130">监控服务</th>
- <th width="70">阀值</th>
- <th width="70">当前值</th>
- <th width="70">当前状态</th>
- <th width="100">监控时间</th>
- </tr>
- </table>
- <?
- $SQL="SELECT * FROM `gansu_user` order by date desc limit 0,5";
- $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="55"><?=$row[province]?></td>
- <td width="160"><?=$row[server]?> </td>
- <td width="100"><?=$row[ip]?></td>
- <td width="100"><?=$row[monitor_server]?></td>
- <td width="130"><?=$row[service]?></td>
- <td width="70"><?=$row[alert]?></td>
- <td width="70"><?=$row[value]?></td>
- <td width="70"><?=$row[status]?></td>
- <td width="100"><?=$row[date]?></td>
- </tr>
- </table>
- <?
- }
- ?>
此页面主要是各省展示自己的监控服务与资源详情的页面。
- td {
- line-height: 16pt;
- font-size: 10pt;
- font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
- }
- a:link {
- text-decoration: none;
- color: #000000;
- }
- a:visited {
- text-decoration: none;
- color: #000000;
- }
- a:hover {
- text-decoration: underline;
- color: #FF3333;
- }
- body {
- font-size: 10pt;
- line-height: 13pt;
- background-color: #ECF5FF;
- }
- .border {
- border: 1px solid #1D5892;
- }
- textarea {
- font-size: 8pt;
- font-family: "Verdana", "Arial", "Helvetica", "sans-serif";
- border: 1px solid #999999;
- padding: 5px;
- }
- select {
- font-size: 8pt;
- padding: 1px;
- font-family: "Tahoma";
- }
- .a1:link {
- color: #FFFFFF;
- }
- .a1:visited {
- color: #FFFFFF;
- }
- .a1:hover {
- color: #FF9900;
- }
- .font14 {
- font-size: 14px;
- font-family: "Tahoma";
- }
- form {
- margin: 0px;
- padding: 0px;
- }
- .alpha {
- filter: Alpha(Opacity=20);
- }
- .filearea {
- font-size: 9pt;
- }
- .textdrow {
- color:#666666;
- filter: DropShadow(Color=white, OffX=1, OffY=1, Positive=1);
- }
- .font18 {
- font-size: 19px;
- }
- .p {
- text-indent: 24px;
- }
- .font16 {
- font-size: 16px;
- }
- .border2 {
- border: 1px solid #D5E4F4;
- }
- .xborder {
- border: 2px dotted #EBF5FE;
- }
- table {
- width: 1100px;
- }
- td {
- text-align:center;
- }
- <?php
- include ("conn.php");
- include ("head.php");
- include("warn_province.php");
- ?>
- <?
- /*检测服务报警
- *
- */
- $SQL="select * from gansu_service where 1=1 AND DATE_FORMAT(gansu_service.date,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') AND status='downing'";
- $query=mysql_query($SQL);
- $result=mysql_fetch_row($query);
- if($result==''){
- echo '<font size="3" color="red"><B>甘肃省份今天没有发现服务报警</B></font><br>';
- }
- else {
- echo '<font size="3" color="red"><B>甘肃省份今天的服务报警为:</B></font><br>';
- include ("service_warning.php");
- }
- ?>
- <?
- /*检测磁盘报警
- *
- */
- $SQL="select * from gansu_disk where 1=1 AND DATE_FORMAT(gansu_disk.date,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') AND status='abnormal'";
- $query=mysql_query($SQL);
- $result=mysql_fetch_row($query);
- if($result==''){
- echo '<font size="3" color="red"><B>甘肃省份今天没有发现磁盘报警</B></font><br>';
- }
- else {
- echo '<font size="3" color="red"><B>甘肃省份今天的磁盘报警为:</B></font><br>';
- include ("disk_warning.php");
- }
- ?>
- <?
- /*检测CPU报警
- *
- */
- $SQL="select * from gansu_cpu where 1=1 AND DATE_FORMAT(gansu_cpu.date,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') AND status='abnormal'";
- $query=mysql_query($SQL);
- $result=mysql_fetch_row($query);
- if($result==''){
- echo '<font size="3" color="red"><B>甘肃省份今天没有发现CPU报警</B></font><br>';
- }
- else {
- echo '<font size="3" color="red"><B>甘肃省份今天的CPU报警为:</B></font><br>';
- include ("resource_warning.php");
- }
- ?>
- <?
- /*检测硬件信息错误报警
- *
- */
- $SQL="select * from gansu_hardware where 1=1 AND DATE_FORMAT(gansu_hardware.date,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') AND status='abnormal'";
- $query=mysql_query($SQL);
- $result=mysql_fetch_row($query);
- if($result==''){
- echo '<font size="3" color="red"><B>甘肃省份今天没有发现硬件信息错误(hardware)报警</B></font><br>';
- }
- else {
- echo '<font size="3" color="red"><B>甘肃省份今天的硬件信息错误(hardware)报警为:</B></font><br>';
- include ("resource_warning.php");
- }
- ?>
- <?
- /*检测I/O报警
- *
- */
- $SQL="select * from gansu_io where 1=1 AND DATE_FORMAT(gansu_io.date,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') AND status='abnormal'";
- $query=mysql_query($SQL);
- $result=mysql_fetch_row($query);
- if($result==''){
- echo '<font size="3" color="red"><B>甘肃省份今天没有发现I/O报警</B></font><br>';
- }
- else {
- echo '<font size="3" color="red"><B>甘肃省份今天的I/O报警为:</B></font><br>';
- include ("resource_warning.php");
- }
- ?>
- <?
- /*检测load报警
- *
- */
- $SQL="select * from gansu_load where 1=1 AND DATE_FORMAT(gansu_load.date,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') AND status='abnormal';";
- $query=mysql_query($SQL);
- $result=mysql_fetch_row($query);
- if($result==''){
- echo '<font size="3" color="red"><B>甘肃省份今天没有发现负载(load)报警</B></font><br>';
- }
- else{
- echo '<font size="3" color="red"><B>甘肃省份今天的负载(load)报警为:</B></font><br>';
- include ("resource_warning.php");
- }
- ?>
- <?
- /*检测内存报警
- *
- */
- $SQL="select * from gansu_memory where 1=1 AND DATE_FORMAT(gansu_memory.date,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') AND status='abnormal'";
- $query=mysql_query($SQL);
- $result=mysql_fetch_row($query);
- if($result==''){
- echo '<font size="3" color="red"><B>甘肃省份今天没有发现内存(memory)报警</B></font><br>';
- }
- else {
- echo '<font size="3" color="red"><B>甘肃省份今天的内存(memory)报警为:</B></font><br>';
- include ("resource_warning.php");
- }
- ?>
- <?
- /*检测日志信息报警
- *
- */
- $SQL="select * from gansu_message where 1=1 AND DATE_FORMAT(gansu_message.date,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') AND status='abnormal'";
- $query=mysql_query($SQL);
- $result=mysql_fetch_row($query);
- if($result==''){
- echo '<font size="3" color="red"><B>甘肃省份今天没有发现日志信息(message)报警</B></font><br>';
- }
- else {
- echo '<font size="3" color="red"><B>甘肃省份今天的日志信息(message)报警为:</B></font><br>';
- include ("resource_warning.php");
- }
- ?>
- <?
- /*检测用户报警
- *
- */
- $SQL="select * from gansu_user where 1=1 AND DATE_FORMAT(gansu_user.date,'%Y-%m-%d') = DATE_FORMAT(NOW(),'%Y-%m-%d') AND status='abnormal'";
- $query=mysql_query($SQL);
- $result=mysql_fetch_row($query);
- if($result==''){
- echo '<font size="3" color="red"><B>甘肃省份今天没有发现用户登录数(user)报警</B></font><br>';
- }
- else {
- echo '<font size="3" color="red"><B>甘肃省份今天的用户登录数(user)报警为:</B></font><br>';
- include ("resource_warning.php");
- }
- ?>
此页面主要是展现甘肃省当日的服务与资源的报警。
下一篇文章地址:
运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统(六)
http://dl528888.blog.51cto.com/2382721/1035297
本文转自 reinxu 51CTO博客,原文链接:http://blog.51cto.com/dl528888/1035252,如需转载请自行联系原作者
运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统(五)相关推荐
- 运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统(二)
现在开始介绍php+mysql+shell监控系统 1.目的 此监控系统主要是通过php+mysql+shell的方式,通过shell脚本对各个机器的其各个服务进行监控,达到及时的了解其各个应用服务的 ...
- 运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统(一)
前言 记得刚来这家公司的时候,我部门就我一个运维工程师,然后就是经理,刚开始公司平台什么监控都没有,在我与经理的努力下,先搭建nagios+cacti监控平台,后来随着公司业务的增加,平台的功能与服务 ...
- 运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统(四)
(5)数据库服务器(以甘肃数据库为例,脚本解释参照甘肃web) #!/bin/bash #ip db_ip=$(/sbin/ifconfig eth0|grep "inet addr&quo ...
- 运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统
转载来自:http://dl528888.blog.51cto.com/2382721/1034992 前言 记得刚来这家公司的时候,我部门就我一个运维工程师,然后就是经理,刚开始公司平台什么监控都没 ...
- 运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统(七)
X.create_province.sh脚本内容 #!binbash LANG="zh_CN.UTF-8" LANG=C #mysql info mysql_ip='1.1.1.1 ...
- php自动运维,运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统(五)
include("conn.php"); include("head.php"); include("province.php"); ?&g ...
- linux运维自动化脚本,linux运维自动化shell脚本小工具
linux运维shell 脚本小工具,如要分享此文章,请注明文章出处,以下脚本仅供参考,若放置在服务器上出错,后果请自负 1.检测cpu剩余百分比 #!/bin/bash #Inspect CPU # ...
- Servicehot和你说说运维自动化的那些事儿
2019独角兽企业重金招聘Python工程师标准>>> 运维管理兜兜转转十几余载,大家的运维管理再也不是小米加步枪.人工费力拉线扛服务器的传统时代,如你所知,这些年大家张口闭口谈的都 ...
- 舍本求末的运维自动化技术热潮
运维自动化是2010年开始炒得很热的一个概念,也让很多工程师.用人单位瞎激动了很久,我也跟风学过puppet和python,求职双方也经常在面试时花大量时间谈运维自动化. 但冷静下来想想,所谓自动化, ...
最新文章
- 前端学习(2951):上午回顾
- 草稿 9206 1128需处理
- docker 网络设置
- Quote Form OnLoad Implement Add Leftnav, count Activities
- oracle常用网址
- 冷知识 —— 计算机科学及编程
- Java Socket编程(一)TCP/IP简介
- 如何成为一个技术全面的架构师
- 5.UML2 软件建模入门与提高 --- 类图
- matlab特定等值线,从Matlab轮廓函数中选择等值线
- 查看WLC的SFP模块信息
- 五点差分法求解偏微分方程(PDE)
- java中英文排序_Java 中英文数字排序
- OpenWrt mesh组网设置
- 【Matlab生物电信号】生物电信号仿真【含GUI源码 684期】
- 介绍一个关于小米Zigbee的开源项目
- 使用seq2seq模型进行机器翻译的方法不同
- 深度剖析淘宝天猫搜索逻辑
- Java常用的Dos命令
- DW如何设置计算机管理,《Dreamweaver网页设计》网页设计技巧