logoalt Hacker News

Show HN: Sigabrt.dev – cronjob monitor with an SSH TUI

55 pointsby 4815162342yesterday at 10:47 AM27 commentsview on HN

Hello HN. I built this mostly to monitor the things I host myself. I know it's nothing too exciting.

Anyway, the TL;DR is: Create an endpoint, and if your script/cronjob fails to regularly ping it, you get notified (by email or ntfy). E.g.:

    0 * * * * ./script.sh && curl -fsS https://sigabrt.dev/pulse/<id>/beat
It also has an SSH TUI which is currently experimental and read-only, mostly because I'm not sure whether it is actually useful or just a gimmick :):

    ssh sigabrt.dev
To use it, simply add your SSH public key in your account settings.

Yes, there are services like this already, and this is minimalistic by comparison. Feedback is welcome.


Comments

mosselmantoday at 6:28 PM

Shameless plug for a server monitoring macOS app I built. I built that too for the servers I managed myself. Instead of working through a service or a self-hosted monitoring tool that I then over to monitor itself again, I thought running it on my laptop was pretty nice too. One of the next features I've been wanting to build is uptime monitoring.

https://kitaso.app/

Sure there is the downside of having to be at your laptop or having it on, but the upside is that it has very few moving parts and is very simple and it just has one set price.

p2004atoday at 1:05 PM

I'm myself very happy with https://healthchecks.io/ for this purpose.

show 2 replies
raimuetoday at 3:25 PM

You could just wrap cronic around the command and immediately receive the full output per mail when it fails. I don't see how a heartbeat alone without logs would help to identify temporary failures.

https://habilis.net/cronic/

Your service could accomplish something similar if it had such a wrapper to report both success and failures with logs to a remote server. That would take away the need to run a local MTA, while also detecting with the heartbeat whether the job ran at all.

show 2 replies
linsomniactoday at 2:46 PM

I've been toying with a similar idea for ~6 months: A lightweight job status dashboard.

I wanted something that required no setup, but could just push success/failure messages to as part of various cron jobs, windows tasks, and shell scripts we run throughout our organization.

StatShed server: https://github.com/statshed/statshed-server StatShed go-cli: https://github.com/statshed/statshed-gocli

The idea is kind of like "ntfy.sh", but for jobs status. You can send a "started" message at the beginning, update a "status" message periodically throughout the job, then send a "failed" message (optionally with logs) or a "success". Then a web dashboard gives you an overview with ability to drill down.

We use Icinga for monitoring and paging, but this just gives an overview for a quick look at things we don't want heavy duty monitoring on. Like my laptop backups, information about ansible runs across our fleet, etc.

mrweaseltoday at 1:00 PM

If you need/want a dashboard it's kinda cool. There's a lot of other options that will do something similar, but not via SSH. Crontab can email you directly, no need for a service.

You could also just use systemd timers and do: systemctl --failed -t service

show 2 replies
adityamishra241today at 5:13 PM

The pulse idea is neat. How do you handle jobs where the expected runtime is longer than the heartbeat interval?

show 1 reply
DylanMerigaudtoday at 4:41 PM

Context helps, shows intent, fosters discussion.

ww520today at 3:54 PM

People seem to miss the point of the project. It’s not emailing you on failure. It’s emailing on missing reports of scheduled runs. If you rely on the job to report failure, the machine could go down. In that case you won’t get any email on the failed run.

andrey_chmerevtoday at 3:23 PM

[dead]

deankongtoday at 5:19 PM

[dead]

dorianmariecomtoday at 12:39 PM

i have something similar at https://heartbeats.dorianmarie.com/