‹ BackHN Continuity

Thread

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

81 points · 35 comments · 4815162342

  1. raimue · · focus · HN ↗
    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.

    <a href="https:&#x2F;&#x2F;habilis.net&#x2F;cronic&#x2F;" rel="nofollow">https:&#x2F;&#x2F;habilis.net&#x2F;cronic&#x2F;

    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.

    1. mherrmann · · focus · HN ↗
      &gt; I don&#x27;t see how a heartbeat alone without logs would help to identify temporary failures.

      It does help. Sometimes jobs unexpectedly don&#x27;t run at all.

      1. raimue · · focus · HN ↗
        A temporary failure means that the job failed only once and then starts running again. If you want to investigate why it failed, you will need the output of that particular failed run.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.