Skip to content

gauravchile/SystemHealthReporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–₯️ Scheduled System Health Reporter

A cron-based Bash project to monitor Linux system health and generate hourly logs.
Automates monitoring of disk, CPU, memory, and top processes, with optional email or Slack notifications.


🌟 Features

  • Monitor disk usage
  • Monitor CPU load averages
  • Monitor memory usage
  • Track top 5 processes by CPU
  • Auto-save logs to /var/log/system_health/
  • Optional Email or Slack notifications

πŸ“ Project Structure

Scheduled_System_Health_Reporter/
β”‚
β”œβ”€ docs/                               # Logs generated by the script
β”‚   └─ health_2025-09-27_10-06-36.log  # Sample log file
β”œβ”€ README.md                            # Project documentation
└─ system_health_reporter.sh            # Main Bash script

βš™οΈ Setup & Usage

  1. Make the script executable:
chmod +x system_health_reporter.sh
  1. Run the script manually to generate a report:
./system_health_reporter.sh --report
  1. Install hourly cron job to automate reporting:
./system_health_reporter.sh --install

πŸ”” Notifications

Email Notifications

  1. Install mail utilities:
sudo apt install -y mailutils
  1. Configure the script with your email address to receive system health reports.

Slack Notifications

  1. Create a Slack Incoming Webhook (refer to Slack documentation).
  2. Add the webhook URL to the script configuration for Slack alerts.

🎯 Skills Demonstrated

  • Linux system monitoring
  • Bash scripting for automation
  • Cron job setup
  • Basic log management
  • Optional integration with Email/Slack notifications

πŸ’‘ Tips

  • Logs are stored in /var/log/system_health/ by default. Ensure the directory exists and is writable.
  • Customize the top processes or reporting intervals by editing the script.
  • Use this for personal servers, lab setups, or small office monitoring.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages