Skip to content

mizuki1324/System_monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

System Monitor 🚀

I created a basic system metric logger for my girlfriend's PC that always crashes (smh). It sends out an alert email before it crashes so I can scream at them to close the 100 open Chrome tabs.

📌 Features

✅ Detects high CPU, RAM, and Disk usage.
✅ Sends an email before or after a system crash.
✅ Uses .env for storing credentials securely.
✅ Prevents repeated email alerts.
Now supports Docker for easier deployment!

🚀 Setup Instructions

1️⃣ Install Dependencies

pip install -r requirements.txt

2️⃣ Configure Environment Variables

Create a .env file and add your email credentials:

EMAIL_USER=your_email@example.com
EMAIL_PASS=your_password

3️⃣ Run the Script

python monitor.py

🐳 Running with Docker (Optional)

If you prefer using Docker, follow these steps:

1️⃣ Build the Docker Image

docker build -t system_monitor .

2️⃣ Run the Container

docker run --env-file .env system_monitor

Now the system monitor will run inside a Docker container! 🎉

About

A basic system metric logger I created for my friend's PC that always crashes (smh)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors