Author: Kyungrae Kim
This is a repository created from Raspberry Pi OS. I will be using this repository to become more familiar with Linux.
Proactive monitoring of the system is crucial for ensuring uptime. Critial system components will be monitored using the following scripts with cron
which is scheduled to run system_health_check.py
every hour.
emails.py
system_health_check.py
Core temperature is monitored using check_temperature
method. If the core temperature rises above 80.0'C, the method sends an alert email.
CPU usage is monitored using check_cpu_usage
method. If the CPU usage is over 80%, the method sends an alert email.
Memory usage is monitored using check_memoery_usage
method. If the available memory is less than 500MB, the method sends an alert email.
Disk usage is monitored using check_disk_usage
method. If the available memory is less than 20%, the method sends an alert email.
- Raspberry Pi Foundation - Getting started with Git
- Able@rhett - How to Set and Get Environment Variables in Python
- Medium@kevalpatel2106 - Monitor the core temperature of your Raspberry Pi
- tutorialspoint - Extract decimal numbers from a string in Python
- Maker Portal - Using Raspberry Pi and Python to Send Email Alerts
- Admin's Choise - Crontab