Results 1 to 4 of 4

Thread: External cPanel statistics

  1. #1
    Registered User
    Join Date
    Jul 2012
    Location
    Duluth, Georgia, United States
    Posts
    2
    cPanel/WHM Access Level

    Website Owner

    Default External cPanel statistics

    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. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: External cPanel statistics

    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!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Registered User
    Join Date
    Jul 2012
    Location
    Duluth, Georgia, United States
    Posts
    2
    cPanel/WHM Access Level

    Website Owner

    Default Re: External cPanel statistics

    Yeah sure, i dont mind.

  4. #4
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    570

    Default Re: External cPanel statistics

    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
    Last edited by cPanelDavidN; 07-09-2012 at 07:17 AM. Reason: typo
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Requests

Similar Threads

  1. Domain with external DNS: external MX and local mail problem
    By vapetrov in forum E-mail Discussions
    Replies: 2
    Last Post: 01-14-2011, 07:33 PM
  2. Statistics From CPanel?
    By tech6 in forum New User Questions
    Replies: 0
    Last Post: 10-10-2010, 04:15 PM
  3. View Mail Statistics - Shows Mail From External Domain
    By oshs in forum E-mail Discussions
    Replies: 3
    Last Post: 07-11-2009, 07:20 AM
  4. Mail Statistics / Cpanel 11
    By WendyH in forum Database Discussions
    Replies: 2
    Last Post: 06-15-2007, 08:16 AM
  5. Cpanel Visitor Statistics
    By forumposters in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 06-09-2006, 06:04 PM