Мониторинг Apache httpd в DumbMonit
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
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.