OGG维护优化脚本(二十五)-OGG状态监控系统--HTML实现
短信预约 -IT技能 免费直播动态提醒
部分html 范例
主要用到了嵌套表格等简单的语法
<!DOCTYPE HTML>
<html>
<h2 align="center">goldengate监控系统</h2>
<head>
<style type="text/css">
p
{
border:red solid thin;
outline:#00ff00 dotted thick;
}
</style>
</head>
<body>
<p><b>注意:</b>注意,该系统仅为测试版本</p>
<div >
<a href="http://172.25.4.12:8080/index2.html">全系统状态监控</a>
</div>
<p>管线资源系统</p>
<table border=2 width="70%" >
<tr>
<td>主机</td>
<td>用户</td>
<td><a href="http://172.25.4.12:8080/gginfo/TESTDB.html">配置信息及状态</a></td>
<td>错误日志</td>
<td>上月错误日志</td>
<td>写入错误信息</td>
<td>附加日志</td>
</tr>
<tr>
<td rowspan=3>TESTDB1</td>
<td>ggs</td>
<td><a href="http://172.25.4.12:8080/gginfo/TESTDB1-ggstest.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/gginfo/TESTDB1-ggstest.html" width=120 height=30></iframe></a></td>
<td><a href="http://172.25.4.12:8080/gglog/TESTDB1-ggstest.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/gglog/TESTDB1-ggstest.html" width=120 height=30></iframe></a></td>
<td><a href="http://172.25.4.12:8080/lgglog/TESTDB1-ggstest.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/lgglog/TESTDB1-ggstest.html" width=120 height=30></iframe></a></td>
<td><a href="http://172.25.4.12:8080/ggdsc/TESTDB1-ggstest.html">
<iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/ggdsc/TESTDB1-ggstest.html" width=120 height=30></iframe>
</a></td>
<td><a href="http://172.25.4.12:8080/ggchk/TESTDB1-ggstest.html">
<iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/ggchk/TESTDB1-ggstest.html" width=120 height=30></iframe>
</a></td>
</tr>
<tr>
<td>ggtest1</td>
<td><a href="http://172.25.4.12:8080/gginfo/TESTDB1-ggtest1.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/gginfo/TESTDB1-ggtest1.html" width=120 height=30></iframe></a></td>
<td><a href="http://172.25.4.12:8080/gglog/TESTDB1-ggtest1.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/gglog/TESTDB1-ggtest1.html" width=120 height=30></iframe></a></td>
<td><a href="http://172.25.4.12:8080/lgglog/TESTDB1-ggtest1.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/lgglog/TESTDB1-ggtest1.html" width=120 height=30></iframe></a></td>
<td>none</td>
<td><a href="http://172.25.4.12:8080/ggchk/TESTDB1-ggtest1.html">
<iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/ggchk/TESTDB1-ggtest1.html" width=120 height=30></iframe>
</a></td>
</tr>
<tr>
<td>ggtest2</td>
<td><a href="http://172.25.4.12:8080/gginfo/TESTDB1-ggtest2.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/gginfo/TESTDB1-ggtest2.html" width=120 height=30></iframe></a></td>
<td><a href="http://172.25.4.12:8080/gglog/TESTDB1-ggtest2.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/gglog/TESTDB1-ggtest2.html" width=120 height=30></iframe></a></td>
<td><a href="http://172.25.4.12:8080/lgglog/TESTDB1-ggtest2.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/lgglog/TESTDB1-ggtest2.html" width=120 height=30></iframe></a></td>
<td>none</td>
<td><a href="http://172.25.4.12:8080/ggchk/TESTDB1-ggtest2.html">
<iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/ggchk/TESTDB1-ggtest2.html" width=120 height=30></iframe>
</a></td>
</tr>
<tr>
<td rowspan=2>TESTDB2</td>
<td>odsggs3 </td>
<td><a href="http://172.25.4.12:8080/gginfo/TESTDB2-odsggs3.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/gginfo/TESTDB2-odsggs3.html" width=120 height=30></iframe></a></td>
<td><a href="http://172.25.4.12:8080/gglog/TESTDB2-odsggs3.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/gglog/TESTDB2-odsggs3.html" width=120 height=30></iframe></a></td>
<td><a href="http://172.25.4.12:8080/lgglog/TESTDB2-odsggs3.html"><iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/lgglog/TESTDB2-odsggs3.html" width=120 height=30></iframe></a></td>
<td>none</td>
<td><a href="http://172.25.4.12:8080/ggchk/TESTDB2-odsggs3.html">
<iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/ggchk/TESTDB2-odsggs3.html" width=120 height=30></iframe>
</a></td>
</tr>
<tr>
<td>odsggs4</td>
<td><a href="http://172.25.4.12:8080/gginfo/TESTDB2-odsggs4.html">
<iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/gginfo/TESTDB2-odsggs4.html" width=120 height=30></iframe>
</a></td>
<td><a href="http://172.25.4.12:8080/gglog/TESTDB2-odsggs4.html">
<iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/gglog/TESTDB2-odsggs4.html" width=120 height=30></iframe>
</a></td>
<td><a href="http://172.25.4.12:8080/lgglog/TESTDB2-odsggs4.html">
<iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/lgglog/TESTDB2-odsggs4.html" width=120 height=30></iframe>
</a></td>
<td>none</td>
<td><a href="http://172.25.4.12:8080/ggchk/TESTDB2-odsggs4.html">
<iframe frameborder="0" scrolling="no" class="lazy" data-src="txt/ggchk/TESTDB2-odsggs4.html" width=120 height=30></iframe>
</a></td>
</tr>
</table>
</body>
</html>
基本主要用到了嵌套表格 来显示不同的链路
实际部署中,请各位根据自己实际情况来编辑链路。
通过框架
iframe
来显示带有链接的不同进程状态信息
基本也不是很复杂。
apache 配置文件配置如下
/etc/httpd/conf/httpd.conf
<VirtualHost *:8080>
DocumentRoot /var/www/virtual
ServerName 127.0.0.1
<Directory "/var/www/virtual">
Allow from all
</Directory>
<Directory "/var/www/virtual/gginfo">
Allow from all
</Directory>
<Directory "/var/www/virtual/ggdsc">
Allow from all
</Directory>
<Directory "/var/www/virtual/gglog">
Allow from all
</Directory>
<Directory "/var/www/virtual/ggchk">
Allow from all
</Directory>
</VirtualHost>
具体访问控制看实际需求,我是对所有人放开
以上就是全部OGG维护优化脚本的内容。
个人技术能力有限,利用业余时间写的。欢迎大家指点。
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341