(1)配置HTTP.CONF文件
在IBM HTTP SERVER(IHS)安装目录下的/conf目录下找到http.conf文件,备份该文件。然后打开之后找到以下部分:
#LoadModule status_module modules/mod_status.so
<IfModule mod_status.c>
ExtendedStatus On
</IfModule>
去掉“#”号,打开该开关。以通过LR来监控IHS。
同时,新加入以下部分,以通过浏览器以图形界面方式查看IHS的服务状态。
LoadModule status_module modules/mod_status.so
<Location /server-status>
SetHandler server-status
</Location>
(2)测试对HTTP.CONF文件的配置效果
然后重新启动IHS,在浏览器中,可以使用“http://192.168.0.66/server-status?refresh=auto”访问,以查看IHS服务的汇总信息。或使用“http://192.168.0.66/server-status?refresh=10”访问(每10秒钟刷新一次),以查看IHS服务的详细信息。以下分别是两种访问方式得到的样例:
http://192.168.0.66/server-status?refresh=auto
Total Accesses: 224
Total kBytes: 489
CPULoad: .291667
Uptime: 216
ReqPerSec: 1.03704
BytesPerSec: 2318.22
BytesPerReq: 2235.43
BusyWorkers: 1
IdleWorkers: 49
Scoreboard: ____________________________________W_____________..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
http://192.168.0.66/server-status?refresh=10
Apache Server Status for 192.168.0.66
Server Version: IBM_HTTP_Server
Server Built: Dec 4 2008 20:35:45
------------