您的位置:首页 > 理论基础 > 计算机网络

配置对IBM Http Server的实时监控

2010-07-13 21:07 309 查看
文件:{HTTPServerInstallPath}/conf/ httpd.conf
找到以下段落,去掉前面的“#”号即可。
LoadModule status_module modules/mod_status.so
<IfModule mod_status.c>
ExtendedStatus On
</IfModule>

<Location /server-status>
SetHandler server-status
</Location>
配置完成,重启web服务器之后,使用“http://ip/server-status?refresh=10”查看。refresh=10表示刷新频率为秒钟。或使用“http://ip/server-status?refresh=auto”查看汇总信息。
默认的httpd.conf相关描述:
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
# SetHandler server-status
# Order deny,allow
# Deny from all
# Allow from .example.com
#</Location>

## Turn on extended status by default when mod_status is enabled
##
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#LoadModule status_module modules/mod_status.so
<IfModule mod_status.c>
ExtendedStatus On
</IfModule>

【一个样例如下】:
Apache Server Status for 192.168.0.51
Server Version: IBM_HTTP_Server
Server Built: Dec 4 2008 20:35:45
--------------------------------------------------------------------------------
Current Time: Tuesday, 13-Jul-2010 21:04:47 CST
Restart Time: Wednesday, 07-Jul-2010 19:51:24 CST
Parent Server Generation: 0
Server uptime: 6 days 1 hour 13 minutes 23 seconds
1 requests currently being processed, 49 idle workers
_________________________W________________________..............
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process
PID Key:

7156 in state: _ , 7156 in state: _ , 7156 in state: _
7156 in state: _ , 7156 in state: _ , 7156 in state: _
7156 in state: _ , 7156 in state: _ , 7156 in state: _
7156 in state: _ , 7156 in state: _ , 7156 in state: _
7156 in state: _ , 7156 in state: _ , 7156 in state: _
7156 in state: _ , 7156 in state: _ , 7156 in state: _
7156 in state: _ , 7156 in state: _ , 7156 in state: _
7156 in state: _ , 7156 in state: _ , 7156 in state: _
7156 in state: _ , 7158 in state: W , 7158 in state: _
7158 in state: _ , 7158 in state: _ , 7158 in state: _
7158 in state: _ , 7158 in state: _ , 7158 in state: _
7158 in state: _ , 7158 in state: _ , 7158 in state: _
7158 in state: _ , 7158 in state: _ , 7158 in state: _
7158 in state: _ , 7158 in state: _ , 7158 in state: _
7158 in state: _ , 7158 in state: _ , 7158 in state: _
7158 in state: _ , 7158 in state: _ , 7158 in state: _
7158 in state: _ , 7158 in state: _ ,

--------------------------------------------------------------------------------
To obtain a full report with current status information you need to use the ExtendedStatus On directive.
--------------------------------------------------------------------------------

IBM_HTTP_Server Server at 192.168.0.51 Port 80
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: