News for hackers. Stuff that matters.
Re:Ask HN: How do you monitor your systemd services? by javajosh on Monday July 31, 2023 @03:40PM (#36947712)
That's great but isn't the real question about what goes in /path/to/my/failure_alert?
Re:Ask HN: How do you monitor your systemd services? by chasil on Monday July 31, 2023 @04:10PM (#36948094)
The original poster hinted that "notifications" and email were options.

For SMS text message notifications, I use an AWK script to send SMTP to an email-SMS gateway. I try to keep these under the 160 character limit, only sent in extraordinary situations (high server room temp, decoy port triggering on the firewall hinting an intrusion, etc). I don't want this blowing up my phone.

For email, I have a MIME pack script that allows me to send a message with an arbitrary number of base64-encoded attachments.

Does that cover what might be in a failure alert script?