|
二.配置Apache
1.修改Apache中Httpd.conf文件,添加如下代码(该文件中都有,只要取消注释就好了)
<Location /server-status>
SetHandler server-status
Order deny,allow
# Deny from all
Allow from .localhost
</Location>
2.添加 ExtendedStatus
设置 ExtendedStatus On
3.取消注释LoadModule status_module modules/mod_status.so
加载该模块。
我按照上面配置的,然后在LR里添加相应的计数器,下图中最后两个计数器没有数据。
file:///F:/11/1.JPG
错误信息:
Monitor name :Apache. Parsing error, cannot find token: BusyServers. Measurement: BusyServers|192.168.1.26/server-status?auto. Hints: 1) Such a measurement does not exist, or the html page may be different from the supported one. 2) Try to replace the Apache.cfg with appropriate Apache_<version>.cfg file in <Installation>\dat\monitors and rerun the application (entry point: CApacheMeasurement::NewData). [MsgId: MMSG-47479]
我从http://192.168.1.26/server-status?auto上可以看到如下数据:
f:\11\2.jpg
这里可以看到idleworkers 和 busyworkers ,这两个数据应该是对应LR中#idle servers 和#busy servers计数器的吧?那为什么这两个数据从LR中看不到呢? |
|