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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where does cPanel keep disk space usage stats

Discussion in 'General Discussion' started by optize, Mar 6, 2009.

  1. optize

    optize Well-Known Member

    Joined:
    Apr 27, 2005
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    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?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,277
    Likes Received:
    9
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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
     
Loading...

Share This Page