部分html 范例
主要用到了嵌套表格等简单的语法
<!DOCTYPE HTML> <html> <h1 align="center">goldengate监控系统</h1> <head> <style type="text/css"> p { border:red solid thin; outline:#00ff00 dotted thick; } </style> </head> <body> <p><b>注意:</b>注意,该系统仅为测试版本</p> <div style="color:#00FF00"> <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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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维护优化脚本的内容。
个人技术能力有限,利用业余时间写的。欢迎大家指点。