Project: Process Monitoring and Log Automation
This project involves the creation of an automation script that periodically logs information about running processes, including their name, PID (Process ID), memory usage, and the number of child processes, into a log file. Additionally, the script sends this log file to a specified email address at regular intervals.
Process Monitoring: The script continuously monitors the system's running processes and captures relevant information such as process name, PID, memory usage, and the number of child processes.
Logging: Information about the monitored processes is logged into a file along with the current timestamp for reference.
Automation: The script is designed to run periodically, ensuring consistent monitoring of processes and logging of relevant data.
Email Notification: It automatically sends the log file to a specified email address, allowing for remote monitoring and analysis.
Python 3.x psutil library (for process management and system monitoring) SMTP library (for sending emails)
- Clone the repository to your local machine
- Install the required Python libraries using pip: psutil, secure-smtplib
- Navigate to the project directory
- Run the script
This script is provided as-is without any warranty. Use it at your own risk.