Monitoring the availability of URL's
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
config.py
smtp.py
testurl.py

README.md

PyEmailWebsiteDown

App send email notification if your website is down.

Instalation

This application requires python3

Configure

  1. Set the list of URLs to check (configuration is config.py)
  2. Set the mail server configurations

Example

sites = [
	'https://yii2-menu.pceuropa.net/',
	'https://pceuropa.net',
]

smtp = {
	'server': 'smtp@example.com:587',
	'login': 'info@example.com',
	'password': 'pass',
	'From': 'info@example.com',
	'to': 'info@example.com',
}

Usage

  1. Verify the configuration
python3 testurl.py
  1. Set cron to check your websites on e.g. daily basis
crontab -u username -e

add the line

@daily python3 /path/to/PyEmailWebsiteDown/testurl.py