GitHunt
KO

kosmala007/simple-web-monitor

Monitor your website with bash and crontab

Simple Web Monitor

Simple Web Monitor it's easy program for monitoring your domain.

When monitor detect risk:

  • http status diffrent from 200
  • response size lower than 512 bytes

Program will send you an email.

How it use

  1. Check help ./swm.sh --help
  2. Create .env file based on .env.dist with credentials form mailer
    • important - don't use quotation marks
  3. Run script manuallny eg. ./swm.sh -d https://github.com/404 -r your@email.com
    • When you get the email everything is fine
  4. Add script to your crontab

Required programs in OS

  • curl
  • numfmtm
  • cut
  • tr
  • sed
  • wc
  • crontab

Languages

Shell100.0%

Contributors

Created February 16, 2020
Updated February 6, 2021
kosmala007/simple-web-monitor | GitHunt