DumbMonit

集成网站和 Web 服务器

用 DumbMonit 监控 Apache httpd

The web server: busy and idle workers, the worker scoreboard by state, and request/byte rates when ExtendedStatus is on.

文档官方网站:Apache HTTP Server

产品说明为英文,与产品内一致。页面标签使用您的语言。

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
  1. Enable mod_status (it ships with Apache and is usually on already).

    a2enmod status
  2. Add 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>
  3. Optional: turn on the request and byte counters.

    ExtendedStatus On
  4. Reload Apache, then open http://apache.lan/server-status?auto from the DumbMonit host.

    apachectl graceful
  5. In 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.