Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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,608
    Likes Received:
    32
    Trophy Points:
    238
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 cPanelDavidN, Jul 9, 2012
    Last edited: Jul 9, 2012
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice