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!

Way of getting server resource usage summary?

Discussion in 'cPanel Developers' started by bjdea1, Jan 11, 2010.

  1. bjdea1

    bjdea1 Well-Known Member

    Mar 6, 2003
    Likes Received:
    Trophy Points:
    I'm coding an automated billing system and are finding just one thing lacking with cpanel API functions. That is the difficulty in determining a servers /home disk usage.

    I want my billing script to be able to select the best server to create a new account on from a pool of servers. I would like to be able to get basic resource usage stats for each server so my software can auto select the least utilized server. I would like to be able to get /home disk usage info, overall bandwidth usage info and average load usage info in a single api call. Is this possible?

    Currently I can get load info and overall bandwidth info, but I can't see anyway to get overall disk usage info - ideally "/home" percentage usage.

    Can anyone point me in the right direction to get "/home" usage? Or if not can this be added in the future?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice