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.

External cPanel statistics

Discussion in 'cPanel Developers' started by NCShaffer, Jul 8, 2012.

  1. NCShaffer

    NCShaffer Registered

    Joined:
    Jul 8, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Duluth, Georgia, United States
    cPanel Access Level:
    Website Owner
    Im trying to display the following statistics in my sites admin panel so i can monitor them without logging into the cPanel.

    CPU Usage
    Memory Usage
    Entry Processes
    Disk Space Usage
    Monthly Bandwidth Transfer
    Email Accounts
    PHP version
    MySQL version

    How would i accomplish this? (Im not new to php but im not a trained coder so please dumb down complicated answers if you can.)
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    May I move this over to our developers section of the forum? You are asking how to do something that will require coding, so that's the right forum for posting the question. Thanks!
     
  3. NCShaffer

    NCShaffer Registered

    Joined:
    Jul 8, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Duluth, Georgia, United States
    cPanel Access Level:
    Website Owner
    Yeah sure, i dont mind.
     
  4. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    NCShaffer,

    AFAIK, cPanel & WHM don't offer all of those stats, at least not via an API.

    When you need make API calls to your cPanel & WHM server you use the Remote API.

    Even if you've only got a cPanel user account, you can still make remote cPanel API2 or API1 calls use the Remote API as a proxy layer to get that information.

    If you plan to use PHP, you can get our PHP Client Class that will do the heavy lifting of creating the request. There are many discussions and examples of how to use the "xmlapi" class to make cPanel API calls like StatsBar::stat.


    If you really need all of that info, you can always write you're own Custom cPanel Perl Module that exposes API2 functions.

    Regards,
    -DavidN
     
    #4 cPanelDavidN, Jul 9, 2012
    Last edited: Jul 9, 2012
Loading...

Share This Page