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.

Server load monitoring tools

Discussion in 'cPanel Developers' started by black123, Mar 5, 2007.

  1. black123

    black123 Member

    Joined:
    Dec 28, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    i am looking for a free server load monitoring tool which will email me about the load on the server on a frequent interval.

    Please let me know if there is any such free software to install on the server.

    An help is greatly appreciated.
     
  2. arabws

    arabws Member

    Joined:
    Dec 28, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Try to use Munin Service Monitor
     
  3. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    create a cronjob from the uptime command if thats all you need.


    crontab -e

    * */1 * * * (cd /usr/bin; ./uptime 2>&1 | mail -s "System load" your.email.com)

    The above example will email the load and uptime to you every hour. "System load" is the email subject and of course change your email to your real address.


    You can mail yourself a report the same way with any command you like such as netstat, ps and top or anything you like.
     
  4. xerophyte

    xerophyte Well-Known Member

    Joined:
    Mar 16, 2003
    Messages:
    216
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    if you need extensive monitoring you can take look at the www.nagios.org

    hope that helps
     
  5. mambovince

    mambovince Well-Known Member

    Joined:
    Jan 15, 2005
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    London, UK
    Hi,
    I thought I'd try that from within cPanel cron setup, but it cuts it off, and I suppoe it won't work anyway on a reseller account?
    - Vince
     
  6. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    you could consider a VPS over a whm. Its not much more but you have your own operating system to setup and root access.
     
  7. mambovince

    mambovince Well-Known Member

    Joined:
    Jan 15, 2005
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    London, UK
    jayh38,
    I have 2 VPS and 2 dedi elsewhere, but I need this simple reseller WHM as well.

    Any other way/script to log server load on this setup?

    Many thanks,

    - Vince
     
  8. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    does your host allow php commands such as shell_exec? if yes it may be worth writing a php script to get the uptime and e-mail it to you, and run that on a cron?
     
  9. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    As Nickp666 says, you can call a php script to do the job for you if your provider allows that. I personally do not on my servers. As a matter of fact, I do not even show system status to clients in cpanel or whm either. Out of site out of mind and it saves many headaches. Its only my business and concern to manage my boxes. My clients need not worry about things out of their control. All they know is their heavy forum scripts and photo pages load lightning fast and they are happy.

    good luck
     
  10. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    Custom bash script is a great, low resource usage option. Munin is a resource muncher IMO.
     
  11. voidsecurity

    voidsecurity Member

    Joined:
    Mar 1, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    here is a simple bash monitoring script...

    #!/bin/bash

    load=`uptime | awk '{print $(NF-2)}' | cut -d. -f1`

    if [ $load -gt 4 ]

    then

    echo `uptime` | mail -s "server load is $load" email@domain.tld

    fi
     
  12. SeanLee

    SeanLee Well-Known Member

    Joined:
    May 23, 2004
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Cacti (http://cacti.net/) is an excellent open source monitoring tool with great community support. You could even install it locally on the server you speak of... the footprint is small and overhead is minimal.

    If it applies to you, it also comes RTR (ready to run) as a virtual machine (http://virtualappliances.net/products/cacti.php)

    -Sean
     
Loading...

Share This Page