User specific bandwidth monitor

Discussion in 'PHP' started by fqaisrani, Feb 19, 2010.

  1. #1
    HI folks,

    I am in process of build a SaaS system, and we need to monitor bandwidth of each user account. The users will be able to

    1. use web base normal services which will be browsing, downloading, posting stuff, etc
    2. File uploading, and it does include partial/failed uploads. for example if a user is upload a large file and in middle of the process he closes the browser, the partial upload will be counted.
    3. FTP upload, download...(FTP features are not included in initial stages, but will be added on later stages)
    4. user storage usage.


    Right now the solution I have in mind are..

    1. To calc each page/web-request served for first point.
    2. Perl based uploading so we can monitor the raw upload same as used to display upload progress.
    3. -- no idea--
    4. after a file is uploaded, its size will be saved in DB, and the counter will increase/decrease of uploading/deleting of files.


    But if its possible to somehow customize and use any apache mod, I think that will be alot better and efficient solution. Any other ideas or any improvements to the above solutions are welcome.

    thanks in advance
     
    fqaisrani, Feb 19, 2010 IP