+
Skip to content

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

License

Notifications You must be signed in to change notification settings

andreyvit/watchdogd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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@latest

Run: watchdogd -f /var/lib/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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载