Skip to content

RRitsolution/Shell-Scripting_System_Monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

🚀 Shell Scripting | System Monitoring

A lightweight Linux system monitoring script written in Bash to check CPU and Memory usage and send alerts when thresholds are exceeded.

Features

Monitors CPU usage using top

Monitors Memory usage using free -h

Custom threshold variables

Automatic email alerts

Clean terminal output for normal conditions# Shell-Scripting_System_Monitor This repository is for Linux system monitor and send alert if cpu/memory cross defined threshold.

Note- 1.For sending alert ,Need to configure email setup .

I have also shared all steps for gmail setup with file name-emailgmailsetup.txt in gitHub repository.

Example for CPU high load and sending alert to configured email :-

2.To automate the entire process, open the crontab using crontab -e and add the following entry to run the script every hour: 0 * * * * /path/to/systemmonitoring.sh

Mail snip alert

image

About

This repository is for Linux system monitor and send alert if cpu/memory cross defined threshold.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages