Ошибки шаблона Zabbix

День добрый.
Адаптировал, стандартный zabbix шаблон для мониторинга nginx, под angie (адаптировал - громко сказано, тупо везде поменял nginx на angie :)) ) всё работало около года, до 11.03.2024, затем метрики стали выдавать ошибку:

Preprocessing failed for: HTTP/1.1 200 OK…Server: Angie/1.4.1…Date: Fri, 15 Mar 2024 23:22:19 GMT…Content-Type: text/htm…

  1. Failed: cannot perform regular expression “server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)” match for value of type “none”: pattern does not match

Собрано с --with-http_stub_status_module:
angie -V
Angie version: Angie/1.4.1
built with OpenSSL 1.1.1k FIPS 25 Mar 2021 (running with OpenSSL 1.1.1q FIPS 5 Jul 2022)
TLS SNI support enabled
configure arguments: --prefix=/etc/angie --conf-path=/etc/angie/angie.conf --error-log-path=/var/log/angie/error.log --http-log-path=/var/log/angie/access.log --lock-path=/run/angie.lock --modules-path=/usr/lib/angie/modules --pid-path=/run/angie.pid --sbin-path=/usr/sbin/angie --http-client-body-temp-path=/var/cache/angie/client_temp --http-fastcgi-temp-path=/var/cache/angie/fastcgi_temp --http-proxy-temp-path=/var/cache/angie/proxy_temp --http-scgi-temp-path=/var/cache/angie/scgi_temp --http-uwsgi-temp-path=/var/cache/angie/uwsgi_temp --user=angie --group=angie --with-file-aio --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-mail --with-mail_ssl_module --with-stream --with-stream_mqtt_preread_module --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-threads --feature-cache=…/angie-feature-cache --with-ld-opt=‘-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld’

В чем может быть дело? Подскажите?

Намекает на то, что в ответ отдаются не метрики, а какая-то HTML страничка. Видимо в конфигурации что-то поменяли и запрос теперь уходит не туда.

1 Like

Да, всё верно! Судя по всему намудрил с конфигурациями - для проверки поменял порт с 80-го на тот который точно не используется и ошибки ушли.

Спасибо за наводку.