Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 960 Bytes

File metadata and controls

36 lines (20 loc) · 960 Bytes

Overview

Send an alert email if Server's usage is continuously higher than a certain amount.


Setup the Enviroment

  • Environment used is centos7.
  • Python-3.7.4

Script to install Python for centos 7:

  • sh python37-install.sh

Install Python for others:

Mail information:

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

Setup Gmail:

To Run

  • sh server-activity.sh