Skip to content


Subversion checkout URL

You can clone with
Download ZIP script to monitor linux servers and email warning & diagnostics when load exceeds set value
branch: master
Failed to load latest commit information.
bin upgrade to latest
LICENSE Create LICENSE Update tweak sample config, adjust report order


Email notification + diagnostics emailed when a preset server load is triggered.

  • - for WHM/cPanel servers running on Centos
  • - ubuntu servers running nginx


Using git + our init script:

This is the fastest way to get up and running. Let us handle the installation for you!

cd /root; git clone;
cd loadwatch
sh bin/ --init

Using git:

cd /root
git clone
cd loadwatch/bin
chmod u+x
chmod u+x thirdparty/

To install manually:

mkdir /root/loadwatch
mkdir /root/loadwatch/bin/
touch /root/loadwatch/bin/
chmod u+x /root/loadwatch/bin/
vim /root/loadwatch/bin/

Copy and paste the contents of the correct into vim and save.

Copy to if on an Ubuntu based server


Edit and set the LOAD level and EMAIL address you want to use for notifications.

For a single CPU server using '4' for the load level is fairly typical.

Set REMOVE for the number of days to retain logwatch highload reports.

Set up Cron

Next, edit your crontab and insert the entry below which will run every 2-5 minutes to check server load and generate a report of the load is over the set threshold. For example, we can set a crontab for every 3 minutes:

crontab -e  

*/3 * * * * /root/loadwatch/bin/ > /dev/null 2>&1

Make sure the loadwatch script is set to 700 permissions.


Log files will be deleted every $REMOVE days as defined in the config file. Be sure this is set or log files will continue to grow over time.


  • An awesome staff member who gave me a copy of the base script.
  • Will Ashworth for a bunch of great contributions


  • Use at your own risk - no warranty or support is provided.


  • Improve report layout
  • Provide some extra guidence / steps on how to use key info to spot & resolve high load causes.
  • Improve Ubuntu version to match 'sar' type reporting if possible.
  • Add nginx / typical ubuntu email agent debug info to
  • Look for ways to expand the script to provide more relevant info
Something went wrong with that request. Please try again.