配置对IBM Http Server的实时监控

文件:{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

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值