XOOPS
新闻
新闻索引
新闻
模块
开发者
黑客
主题
存档
投稿新闻
首页
XOOPS
关于XOOPS
为什么选择XOOPS?
XOOPS 功能
使用条款
隐私声明
许可协议
论坛
论坛索引
最新主题
新闻
主题
模块
模块 @ GitHub
旧存储库
XOOPS 常见问题解答
账户
登录
注册
下载XOOPS 2.5.11
发布者
XOOPS
模块
PORTMAN ~ 服务器状态监控
模块
PORTMAN ~ 服务器状态监控
carnuke
20-Dec-2004 23:14
8311 阅读量
2 评论(s)
-----------------------------------------------------------------------------
DEMO.
请访问
http://houseofstrauss.co.uk/
安装
1- 配置 ./portman/index.php,替换 $hostname 后的网站网址,并在表中替换。
2- 将 'portman' 文件夹上传到您的XOOPS站点的根目录。其他位置也是可能的,但可能需要更改iframe代码。
3- 在您的XOOPS站点/admin/blocks/中创建一个自定义HTML块,并插入以下代码
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
4- 块名为“服务器状态”或您想要的任何名称。
5- 如常设置块的位置和权限。
6- 根据您的主题和监控的网站名称长度,可能需要调整iframe的尺寸(最小宽度=110px)
7- 如果您要显示多个网站,根据需要增加iframe的高度。
8- 要监控所有端口,您必须仅选择您自己的服务器上的网站和子站点。
9- Portman工具可以为非XOOPS网站安装,通过替换
-----------------------------------------------------------------------------
Example:
//$hostname1 = "www.site_2.com";
//echo "
//
Site 2
//
//
//
//
//
//
";
-----------------------------------------------------------------------------
HOW IT WORKS:
file: image.php Ping checks if server ports are open or closed and returns graphic indicators .
$fp = fsockopen($host, $port,$errno,$errstr, 4);
if (!$fp){
readfile('offline.gif');
} else {
readfile('online.gif');
fclose($fp);
}
-----------------------------------------------------------------------------
TESTING:
(example)
change a port number in [file: index.php], ie 3306 to 3336. This will find a closed port and should return a down arrow for MySql.
-----------------------------------------------------------------------------
OPTIONS:
A few alternative icons are supplied in the images folder. You can also add/delete/change port numbers if you wish to monitor other known ports.
-----------------------------------------------------------------------------
ABOUT PORT NUMBERS:
Where port numbers are concerned, consider an analogy between the computer and the telephone. Port numbers and their associated network addresses work something like telephone numbers and associated network extensions, or channels.
In this analogy a port number represents the "channel" for network communications. Port numbers allow different applications on the same computer to utilize network resources without interfering with each other. Just as different organizations may use different extension numbers "inside" their primary phone number, different computers use the same set of port numbers.
Port numbers most commonly appear in network programming, particularly socket programming. Sometimes, though, port numbers are made visible to the casual user. Normally, a Web site uses port number 80 and this number need not be included with the URL (although it can be).
In IP networking, port numbers can theoretically range from 0 to 65535. Most popular network applications, though, use port numbers at the low end of the range (such as 80 for HTTP). The port number is included as a field within the header of each IP packet.
There is a lot of information on port numbers: search google for "well known port numbers"
For a complete up to date list of port numbers see
http://www.iana.org/assignments/port-numbers
-----------------------------------------------------------------------------
PURPOSE OF USE
1- Monitoring port numbers is not much good if you cant reach your site, that's why this is not a xoops module, but a stand alone script that can be called outside of your xoops website.
2- The server status script may be of use to administrators running other sites on the same server and like to see a quick indication that things are basically ok or not.
3- Administrators can also configue the port numbers to monitor other ports if required.
4- Some ports such as port 80 for HTTP can be monitored for sites on a different server
-----------------------------------------------------------------------------
FEEDBACK:
Comments, criticisms and creative suggestions all welcome
Richard Strauss //
Carnuke@xoops.org
Rating 0/5
Rating:
0
/5 (0 votes)
Voting is disabled!
Items by the same author
Flat
Threaded
Nested
Oldest First
Newest First
Login
Username
Password
Remember me
Reset
Search
Advanced Search
Recent Comments
Re: New Admin Theme for XOOPS (Beta)
Publisher
Bleekk
06/03/2024 18:53
Re: New Admin Theme for XOOPS (Beta)
Publisher
kakos
05/29/2024 14:51
Re: XOOPS 2.5.11 Final Released
Publisher
HymanSarwar
02/16/2024 5:22
Re: XOOPS 2.5.11 Final Released
Publisher
Mamba
12/31/2023 15:24
Re: XOOPS 2.5.11 Final Released
Publisher
alain01
12/29/2023 10:16
Who's Online
275
user(s) are online (
22
user(s) are browsing
Publisher
)
Members: 0
Guests: 275
more...
Donat-O-Meter
Stats
Goal:
$100.00
Due Date:
Aug 31
Gross Amount:
$0.00
Net Balance:
$0.00
Left to go:
$100.00
Latest GitHub Commits
{{ record.sha.slice(0, 7) }} -
{{ record.commit.message | truncate }}
{{ record.commit.author.name }}
{{ record.commit.author.date | formatDate }}
Categories
XOOPS
Newsletter