ELSEIF
Your brief EB
189 stories from 105 feeds 341 clusters Refreshed 12 minutes ago next pull 13:52

INFRA Signal 412

Systemd services ping healthchecks.io on success and failure via OnSuccess/OnFailure hooks

Illustration only Photo by Markus Spiske on Unsplash

A systemd template service uses OnSuccess/OnFailure hooks to curl a self-hosted healthchecks.io instance, with an updated version supporting start and logging options.

WHY IT MATTERS

Engineers can monitor systemd-triggered jobs without extra agents, using built-in hooks. The updated template passes $MONITOR_* variables to include logs and exit codes, but only works when a single service triggers the handler.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

OnSuccess/OnFailure hooks trigger curl pings to healthchecks.io for service status changes.

02

The updated template uses a single service file with :failure:success:start arguments to differentiate actions.

03

$MONITOR_* environment variables are only passed when a single service triggers the handler, not when multiple do.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
passbe.com via Lobsters Monitoring SystemD services with Healthchecks.io Open ↗