Skip to content

pceuropa/PyEmailWebsiteDown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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': '[email protected]:587',
	'login': '[email protected]',
	'password': 'pass',
	'From': '[email protected]',
	'to': '[email protected]',
}

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

About

Monitoring the availability of URL's | Free Website Monitoring | Raport to email.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages