DumbMonit

集成网站和 Web 服务器

用 DumbMonit 监控 Nginx

The web server and reverse proxy: active and waiting connections, the accept/handled/request rates, and upstream health when the commercial NGINX Plus API is available.

文档官方网站:Nginx

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

DumbMonit 监控的内容

The web server and reverse proxy: active and waiting connections, the accept/handled/request rates, and upstream health when the commercial NGINX Plus API is available.

典型用途. Web server: active/waiting connections, accept/handled/request rates, NGINX Plus upstream health

示例

  • Nginx in Docker
  • Nginx as a reverse proxy
  • Nginx on a Linux host

连接方式

您需要准备

  • 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 Nginx's stub_status module
  1. Add this location to the server block Nginx already serves, restricted to the DumbMonit host (adjust the address).

    location /basic_status {
    stub_status;
    allow 10.0.0.5;
    deny all;
    }
  2. Reload Nginx.

    nginx -s reload
  3. Open http://nginx.lan/basic_status from the DumbMonit host: it must show Active connections.

  4. In DumbMonit, enter the Nginx host, for example nginx.lan, and the path if it is not /basic_status.

  5. If NGINX Plus is installed, tick Read the NGINX Plus API to add upstream health and per-zone counters.

注意. stub_status only counts connections and requests: a configuration error in a server block or an unreachable backend does not show there.