Skip to content
/ checkup Public

php utility for emailing webmasters/admins when websites are not live

License

Notifications You must be signed in to change notification settings

sonro/checkup

Repository files navigation

checkup

php utility for emailing webmasters/admins when websites are not live

Dependencies

  • php8.1+
  • composer

Install, Setup, and Usage

  • Download and open the repository
  • composer install
  • ./checkup
  • Add email recipients and SMTP credentials to 'config.json'
  • Add line seperated URLs to 'testsites'. These are tested on every execution
  • ./checkup
  • If no errors are displayed, setup a cronjob to run './checkup' as often as you want
  • A log of issues is kept in './var/log/checkup.log'

Information

The emails are only triggered the first time a website is marked as being offline. Each email states all the sites that are currently inaccesable by the app. Another email is sent to annouce that all sites are functioning again.

No checks are attempted when the app can not establish a connection to the 'test_url' in 'config.json'.

Licence

This entire work (including this document & all associated source code) is licensed to anyone under the terms of the GNU General Public License v3.0 (or any later version of the same license, at the licensee’s option). For the relevant legal text, see the LICENSE file.

GNU GPL v3+

About

php utility for emailing webmasters/admins when websites are not live

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages