Monitor website availability, with optional desktop notifications.
| src | Make desktop notifications optional | |
| .gitignore | Add logging; log successful checks | |
| Cargo.lock | Add logging; log successful checks | |
| Cargo.toml | Add logging; log successful checks | |
| README.md | Add donate button/text | |
monitor-sites
Monitor website availability, logging success or failure to a file. Desktop notifications for failures can optionally be set.
Create a .env file with a comma-separated list of websites:
SITES="https://example.com,https://kdwarn.net"
To enable desktop notifications, add a second line:
DESKTOP_NOTIFICATIONS=TRUE
Run with cron regularly, though discard standard output so cron doesn't attempt to send emails when checks are successful. This will run it every 10 minutes (where monitor-sites is the executable):
*/10 * * * * cd /path/to/install && /path/to/install/monitor-sites > /dev/null
The log file is "monitor-sites.log" and will be placed in the installation directory.
Sponsor
If you find this project useful and have the means, I'd be most appreciative of whatever sort of donation you might be able to make!