Where does cPanel keep disk space usage stats

optize

Well-Known Member
Apr 27, 2005
146
0
166
I'm writing custom scripts to pull data and instead of doing 'du' every day, I'd already use the one that cPanel does.

Where can I find the raw data cPanel gathers for this?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
I'm writing custom scripts to pull data and instead of doing 'du' every day, I'd already use the one that cPanel does.

Where can I find the raw data cPanel gathers for this?
Are you just looking for the disk usage as cPanel sees it? If so, just use the XML API. The listaccts function returns diskused and disklimit tags. Learn more at http://cpanel.net/plugins/xmlapi