Skip to content

kosmala007/simple-web-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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