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.

Way of getting server resource usage summary?

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

  1. bjdea1

    bjdea1 Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    83
    Likes Received:
    1
    Trophy Points:
    8
    Hi,
    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?
     
Loading...

Share This Page