NCShaffer

Registered
Jul 8, 2012
2
0
1
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.)
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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!
 

cPanelDavidN

Well-Known Member
Staff member
Dec 17, 2009
571
3
68
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
 
Last edited: