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.

Automatically check resellers total disk/bw usage?

Discussion in 'General Discussion' started by electric, Apr 11, 2007.

  1. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    Hello,

    With individual cpanel accounts, the cpanel software will automatically send a "disk space is 80% used" email to the customer.

    However, for reseller accounts there does not appear to be anything similar.

    We have constantly the situation where our resellers are using up their allocated disk space (or bandwidth) and then getting upset with us because we did not email them to warn them, etc.

    We have instructed them that they can see their total disk/bw usage in the "Create new account" page.. but that is not good enough.

    Is there any way to "pro-actively" check each resellers disk and bw usage, compare it against their allowance, and then email them if they are getting close to using up their limits?

    Maybe an add-on module or something?

    Thanks.
     
  2. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    This is a good idea, please add it to the requests :)
     
  3. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    697
    Likes Received:
    1
    Trophy Points:
    18
    It was already added several years ago. :mad:

    At this point, I am just trying to find out if it's possible to do it with a script. If so, then we might build it ourselves.
     
  4. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    ok, well, try this via SSH as root:

    Code:
    cd /home/{resellers account} && du -Hs
    
     
  5. MACscr

    MACscr Well-Known Member

    Joined:
    Sep 30, 2003
    Messages:
    190
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    so how can we do this. I still cant seem to find a good way to do this with a php script.
     
Loading...

Share This Page