Skip to main content

Simple local dead man's switch for cron jobs and scheduled tasks

Project description

health-cli

Run some checks periodically locally on your machine. Provide an interface for the status of these checks. The status inteface checks timestamps and is moderately robust (tries not to hide errors)

This is AI-generated and unreviewed code... for now. Also very young so liable to change but nothing like this existed.

Motivation

Why is there nothing that does this already? I don't want to use docker or some onine services

Alternatives and prior work

There are tools like monit and sentry. cron sends emails when things fail.

Installation

``pipx install healthcli```

Usage

Set up a check: hccli add --every 1m curl website and then in a cron job or systemd timer run hccli run periodcally

To check status of all checks run: hccli. I have this run in a plasma-applet-commandoutput KDE widget which I set up with my tool kde-panel.

If you have a systemd timer you can use hccli add --every 25h --sdtimer backup-home to ensure that the timer runs every 25h.

Debugging

If hccli is not running as expected you can run hccli log to see the logs of past hccli runs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

healthcli-2.2.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

healthcli-2.2.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file healthcli-2.2.1.tar.gz.

File metadata

  • Download URL: healthcli-2.2.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for healthcli-2.2.1.tar.gz
Algorithm Hash digest
SHA256 7c1bbb507dbfdc04bfcfc19df15aef12253b093acbc30b9ac5b78548ff59f052
MD5 27a9c1588cb7c5e8f838a6e16585014d
BLAKE2b-256 77e10047e1e5e4104a3accdf370e7e23318dd1a6a9657dfd46720c84cd11ed6a

See more details on using hashes here.

File details

Details for the file healthcli-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: healthcli-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for healthcli-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae7b8b39fbbb76183830392c32cda832c62c3fecd9f34013f387549fa13a6c2f
MD5 8257d036798b7ff8674b8966b4bdc546
BLAKE2b-256 e7b94235f41bbfbd79582483ac449f9ebd16456616e442671f77b5ff3efde596

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page