Skip to content

Repository files navigation

healthd — pluggable host health check daemon in Go.

healthd

Lightweight host health daemon for one machine: scheduled checks, machine-readable status, and alerts on fail/recover transitions.

Install

Homebrew

brew tap uinaf/tap
brew install healthd

Direct install

curl -fsSL https://raw.githubusercontent.com/uinaf/healthd/main/scripts/install.sh | bash
# optional pinned version:
# curl -fsSL https://raw.githubusercontent.com/uinaf/healthd/main/scripts/install.sh | bash -s -- v0.1.0
healthd --version

Quickstart

healthd init
healthd validate --config ~/.config/healthd/config.toml
healthd check --config ~/.config/healthd/config.toml
healthd status --config ~/.config/healthd/config.toml
healthd status --config ~/.config/healthd/config.toml --watch
healthd notify test --config ~/.config/healthd/config.toml
healthd run --config ~/.config/healthd/config.toml

healthd run is meant to be supervised (process-compose, systemd, launchd).

Example notify config

[notify]
cooldown = "5m"

[[notify.backend]]
name = "ntfy-phone"
type = "ntfy"
topic = "replace-with-strong-random-topic"

[[notify.backend]]
name = "local-log"
type = "command"
command = "logger -t healthd-alert"
timeout = "5s"

More complete host profiles: examples/current-host.toml.

Docs

License

MIT

About

Pluggable host health check daemon in Go

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages