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.

Looking for a way to monitor resource

Discussion in 'cPanel Developers' started by DWHS.net, Jan 24, 2005.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Anyone know of a program that can monitor the resources that show on the "Service Status" page?

    But for several servers using the cpanel key?

    I will pay for this.

    Thanks, Charles
     
  2. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    534
    Likes Received:
    0
    Trophy Points:
    16
    Well, it doesn't integrate with cpanel... but most of the services shown are accessible over the internet, so you can check them with an external program that checks the port status. I use Server Status 2 for that: http://www.rushland.net/projects.htm

    Very easy to use and setup... and can have multiple servers added. Free.
    PHP script - so easily customized.
     
  3. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    For a more advanced monitoring system you could install Nagios www.nagios.org

    Also free and very robust :)
     
  4. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Actually it would need to use a cpanel key to access the information. Nagios and programs like that need some kind of mrtg thing to do this, I forgot what it's called but it sucks :p

    I gues I will just have to wait untill someone gets around to coding it someday.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I use ServersAlive (commercial windows app) that can login over SSH to check processes and disk space (as well as the usual port/protocol checks) for all of our servers:
    http://www.serversalive.com
     
  6. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    I use Nagios for our network and it works very well and is very reliable.

    I've created a few custom scripts to check services/procs remotely and locally etc over time and the system just does exactly what we want it to.

    'Nagios stat' is a plugin that you can use for things like disk space monitoring and other local services/procs on remote servers if you wanted to.

    I'm not sure a monitoring app that logged into the whm ports using the access hash (I assume this is what you were requesting when you say cpanel key) would be all that reliable, if cPanel stops then you would have no service monitoring displayed at all. wherever you were displaying it :) Not sure if this would be important or not for your needs.

    CFengine is another application that I have seen used and looks pretty good.
    Thats more of an enterprise network server management application.
    http://www.cfengine.org/
     
  7. DavidR

    DavidR Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    I just glanced over Nagios - looks very nice indeed. I'm thinking of giving it a try. Do you use the 1.x stable or 2.x beta/cvs?

    David
     
  8. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    We currently use v 1.2

    For a quick install with mysql support.. download this http://202.89.39.111/install-nagios-with-mysql

    It will setup a basic working install of nagios with your server you run it on (assuming linux) configured for monitoring - a good start :)
     
  9. DavidR

    DavidR Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    Thanks! I'll let you know how it goes. The WAP support looks handy.

    David
     
  10. DavidR

    DavidR Well-Known Member

    Joined:
    Feb 25, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    Hmm, the install script dumped out at the mysql prompt right after "*If you want to be selective with permissions, read the docs and modify the privileges after installation." Any ideas?

    David
     
  11. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    If you copy the Grant statement that is suggested to you at that point, then issue

    quit or exit from mysql (you get dropped into mysql) the script would continue on.
    I must admit I was lazy there when I did that but it works fine :)
     
  12. jester.ro

    jester.ro Well-Known Member
    PartnerNOC

    Joined:
    Feb 6, 2004
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucharest, Romania
    cPanel Access Level:
    DataCenter Provider
    we use this on our servers:

    http://www.kernel.org/software/mon/


    actually, on one monitoring server. easy to configure, and accepts all kinds of alerts
    can be setup to escalate the situation - first minute faileure-send email, then if service is down for 3 minutes, send sms alert, and so on.

    also has nice statistics, if you use some external cgi-interface - we user mon.cgi
     
  13. mindnetcombr

    mindnetcombr Member

    Joined:
    Sep 16, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    try zabbix.com

    very usefull, many options e configs, great software.
     
  14. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    The original question was if you could see the service status stuff in cpanel.

    If you add an html file in /usr/local/cpanel/base/frontend/THEME/ with the tag:

    <cpanel Serverinfo="servicestatus()">

    It should show the service status.


    Edit: On second read, that's not really what the question asked. Oh well - I still find this useful.
     
  15. emeric21

    emeric21 Well-Known Member

    Joined:
    Aug 5, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Don't work!
     
Loading...

Share This Page