watchdogd

command module
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2024 License: BSD-2-Clause Imports: 15 Imported by: 0

README

watchdogd

Collects checkins from scripts (e.g. backups), and provides status endpoints returning OKAY if checkin happened within the last N hours, which you can monitor via updown.io or similar.

Install: go install github.com/andreyvit/watchdogd

Run: watchdogd -f /var/run/watchdogd.json -t SECRET -l :8080

Checkin: curl -X POST -H 'Authentication: Bearer SECRET' http://127.0.0.1:8080/backups-24h

Set up monitoring to match OKAY on this URL: http://127.0.0.1:8080/backups-24h

Note that keys must end with -99h, -99m or -99s suffixes, where 99 is the number of hours, minutes or seconds to consider the checkin fresh.

View all keys: http://127.0.0.1:8080/

2-clause BSD license.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL