Shell script to alert us when specified background process exceeds limit

Share via:

Hello Everyone,

The below script will help us to find number of processes runs in the background and send us alerts based on warning and critical thresholds.

Script :

# ]$ cat /home/oracle/DBA/bin/running_process.sh

Script execution :

Syntax : ./running_process.sh <PROCESS_NAME> <WARNING> <CRITICAL>

Here I have executed by specifying java process with warning threshold 8 and critical 15

In above script output total 10 java processes are running and it sends us warning alerts. It will help us preventing DB crash.

 

Thank you for giving your valuable time to read the above information. Please click here to subscribe for further updates

KTEXPERTS is always active on below social media platforms.

Facebook  : https://www.facebook.com/ktexperts/
LinkedIn    : https://www.linkedin.com/company/ktexperts/
Twitter       : https://twitter.com/ktexpertsadmin
YouTube   :  https://www.youtube.com/c/ktexperts
Instagram  : https://www.instagram.com/knowledgesharingplatform

 

 

Share via:
Note: Please test scripts in Non Prod before trying in Production.
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Add Comment