tfk-ben / Monitoring-script-py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website Monitoring Script with Python

This script gonna check your app web . if he find it not workng he'll send you a mail and try to restart it. if he couldn't so the instance is't accessible he'll reboot the instance and restart the container of the app .

To lanche the script you need to :

  • install requirements :
$ pip install -r requirements.txt
$ export EMAIL_ADDRESS="...@gmail.com"
$ export EMAIL_PASSWORD="generated password"
  • Lanche the script with :
$ python3 monitoring.py

About


Languages

Language:Python 100.0%