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:
    144
    Likes Received:
    0
    Trophy Points:
    16
    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,279
    Likes Received:
    8
    Trophy Points:
    38
    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