New script to monitor your server load automatically

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
I have added a new script to my "Custom Scripts" section.

This script is run as a cron job, generally set for every minute, which grabs the output from "top" and processes it. It checks the CPU and memory load of each of the top 10 processes, and the total of the top 10 processes. It then emails you if there are any processes using more than what you specify as the maximum load per process, or if the total is more than the maximum you specify for that.

Due to the large number of script downloads from my site compared to the very small number of "Scripts Club" members, I have decided to make a small modification to how my scripts are provided. All my scripts are still free, but versions with enhanced features will only be available to members.

The free version (V1.0) of my Server Monitor script works just fine, but the members version has 2 enhancements.

- you can choose to ignore some commands and/or users for single process monitoring so you don't get emailed when stats are run unless the total load is too high
- you have the ability to specify a minimum time between emails so you can have the script check every minute, but not get an email every minute under high loads

It's only $10 to become a lifetime "Scripts Club" member which has several benefits.
 

nickn

Well-Known Member
PartnerNOC
Jun 15, 2003
616
1
168
Proud to say I am a scripts club member..$10 people...I spent more than that on lunch today.
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
Script update

Version 3.5 is now out.

The new version does it's deciphering in a completely different way, making it work properly with almost any server setup and top output. It also shows the full path to the command now instead of just the command.

If you are using a currently working version, upgrading won't change much, but if it wasn't working for you earlier, it should now. It also now does some checking to see if it seems to be reading properly and if it appears to have a problem, it will email you to let you know.