Мониторинг 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.
ДокументацияОфициальный сайт: 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
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; }Reload Nginx.
nginx -s reloadOpen http://nginx.lan/basic_status from the DumbMonit host: it must show Active connections.
In DumbMonit, enter the Nginx host, for example nginx.lan, and the path if it is not /basic_status.
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.