Sys-ctl-hlth-journalctl Role

Description: No description available

Variables

  • author: Kevin Veen-Birkenbach

  • description: Searches the systemd journal for errors over the past day and alerts if any are found.

  • company: Kevin Veen-Birkenbach

Consulting & Coaching Solutions https://www.veen.world

README

sys-ctl-hlth-journalctl

Description

Scans journalctl over the last day for “error” entries and alerts if any are found.

Features

  • Runs journalctl --since '1 day ago' | grep -i error.

  • Exits non-zero on matches.

  • Scheduled via systemd timer.

  • Alerts via sys-ctl-alm-compose on detection.

Usage

Include the role; set on_calendar_health_journalctl for your preferred schedule.