Naive is-alive check for your servers
Go to file
mj-saunders 11cf8c58b0 Add GPLv2 license 2022-11-04 01:13:37 +04:00
.gitignore Separate out config 2022-11-03 17:27:11 +04:00
LICENSE Add GPLv2 license 2022-11-04 01:13:37 +04:00
README.md Include basic usage info in README 2022-11-04 01:10:26 +04:00
mail_template Only email if error detected 2022-11-03 14:44:17 +04:00
status-check.sh Separate out config 2022-11-03 17:27:11 +04:00

README.md

ICanHasServer

Monitor and report on the status of a list of servers.

Any servers in a list of urls that yield a bad response are collated and sent via email to all recipients. The urls along with a list of recipients are sourced from a separate file in the cwd; it is expected to have a single email address per line.

If the environment variable WATCHDOG_LOG is set, all output will be redirected there.

NOTE Currently only useful for services running over HTTP

Dependencies

  • curl: Polling the servers
  • msmtp: Sending email; requires separate configuration

Usage

Create the following files in the script directory:

  • urls
    • One url per line
  • recipients
    • One email address per line