Send an alert email if Server's usage is continuously higher than a certain amount.
- Environment used is centos7.
- Python-3.7.4
sh python37-install.sh
Edit send_mail.py for Email information.
- In email['from'] - Write sender's name
- In email['to'] - Receiver email
- In smtp.login - Add sender's mail and password
- Enable less secure apps Permission in gmail - https://myaccount.google.com/lesssecureapps
- Still problem in sending mail, then try clearing Captcha - https://accounts.google.com/DisplayUnlockCaptcha
sh server-activity.sh