Kevin Veen-Birkenbach 3a839cfe37
Refactor systemctl services and categories due to alarm bugs
This commit restructures systemctl service definitions and category mappings.

Motivation: Alarm-related bugs revealed inconsistencies in service and role handling.

Preparation step: lays the groundwork for fixing the alarm issues by aligning categories, roles, and service templates.
2025-08-18 13:35:43 +02:00

1017 B
Raw Blame History

sys-ctl-hlth-webserver

Description

Verifies that each of your Nginxserved domains returns an expected HTTP status (200, 301, etc.) and alerts on deviations.

Features

  • Scans your nginx server block .conf files for domains.
  • HEAD-requests each domain and compares against per-domain expected codes.
  • Reports any mismatches via sys-ctl-alm-compose.
  • Scheduled via a systemd timer for periodic health sweeps.

Usage

Include this role, install python-requests, and define on_calendar_health_nginx.

Further Resources

Contributions

This role was created with the assistance of ChatGPT. The conversation can be found here and here.