The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New script to monitor your server load automatically

Discussion in 'General Discussion' started by PWSowner, Oct 21, 2004.

  1. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    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.
     
  2. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    Proud to say I am a scripts club member..$10 people...I spent more than that on lunch today.
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Did you get my email yesterday about the members area? I sent a message to all members but a couple of them bounced.



    If any of the members didn't get my email about the members area, let me know and I'll email you again.
     
    richy likes this.
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    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.
     
Loading...

Share This Page