Add configuration for Prometheus node exporter and SMTP monitoring in PMG. Updated README and added verification checks for new metrics.

This commit is contained in:
Ruslan Piatrovich
2026-06-05 16:33:57 +03:00
parent 85cecf78f6
commit c492399300
11 changed files with 307 additions and 1 deletions
+13
View File
@@ -8,6 +8,8 @@
- `pillar/pmg.sls` — переменные и параметры PMG.
- `pmg/*.sls` — состояния:
- `common` (базовые пакеты),
- `node_exporter` (установка и включение Prometheus node exporter),
- `smtp_monitoring` (SMTP-метрики: blackbox probe для 25/26 и postfix queue/connection gauges),
- `ssh_hardening`,
- `custom_check` (кастомная AV-проверка PMG через KESL),
- `security_agents` (Wazuh/Qualys),
@@ -50,6 +52,8 @@ make check MINION_ID=p-mailgw-x1-01.lmru.tech
- `pmg.ssh_password_authentication`
- `pmg.journald_system_max_use`
- `pmg.journald_max_file_sec`
- `pmg.node_exporter.*`
- `pmg.smtp_monitoring.*`
- `pmg.pmg_services`
- `pmg.update_dist_upgrade`
- `pmg.update_auto_reboot`
@@ -60,6 +64,15 @@ make check MINION_ID=p-mailgw-x1-01.lmru.tech
- `pmg.wazuh.*`
- `pmg.qualys.*`
`pmg.node_exporter.args` по умолчанию включает textfile collector:
`--collector.textfile.directory=/var/lib/prometheus/node-exporter`.
`pmg.smtp_monitoring` публикует расширенные SMTP метрики в node_exporter:
- queue total/deferred + age oldest message;
- SMTP listen/established для портов 25/26;
- recent window counters (`pmg.smtp_monitoring.log_window_seconds`) по логам postfix:
sent, received, deferred, bounced, rejected, tls failures, smtp connections.
## Отдельное обновление PMG
Перед обновлением: