用 DumbMonit 监控 Apache httpd
The web server: busy and idle workers, the worker scoreboard by state, and request/byte rates when ExtendedStatus is on.
产品说明为英文,与产品内一致。页面标签使用您的语言。
DumbMonit 监控的内容
The web server: busy and idle workers, the worker scoreboard by state, and request/byte rates when ExtendedStatus is on.
典型用途. Web server: busy/idle workers, scoreboard by state, request and byte rates
示例
- Apache in Docker
- Apache on a Linux host
- A LAMP stack
连接方式
您需要准备
- Basic authIf the status page sits behind a basic auth block or directive.
无需账户。
需要开放的网络端口
80/TCPStatus page (HTTP, default)443/TCPOnly if the status page is served over HTTPS
设置步骤: Enable Apache's mod_status
Enable mod_status (it ships with Apache and is usually on already).
a2enmod statusAdd this location to the Apache configuration, restricted to the DumbMonit host (adjust the address).
<Location "/server-status"> SetHandler server-status Require ip 10.0.0.5 </Location>Optional: turn on the request and byte counters.
ExtendedStatus OnReload Apache, then open http://apache.lan/server-status?auto from the DumbMonit host.
apachectl gracefulIn DumbMonit, enter the Apache host, for example apache.lan, and the path if it is not /server-status.
注意. Without ExtendedStatus, requests and bytes are not reported at all: the chart stays empty rather than flat.