1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

Monitoring bandwidth of apache owned files

Discussion in 'Plesk for Linux - 8.x and Older' started by dotcommers, Jul 22, 2005.

  1. dotcommers

    dotcommers Guest

    0
     
    Problem monitoring bandwidth of apache owned files

    Hi. forgive me if this topic has already been raised, I have searched for it, but found no relevant results.

    When a file has the owner and group apache (for instance any file that is uploaded through a form), plesks bandwidth monitor (and webstats) do not monitor the bandwidth used by this file.

    Some of these files do need to be owned by apache for scripts to work.

    Are there any solutions that allow plesk to monitor bandwidth used by apache and include in the domains traffic screen?

    Thanks.
    Lyndon
     
  2. serial-thrilla

    serial-thrilla Guest

    0
     
    just wondering:
    does plesk not count the bandwidth towards files that are apache owned and apache grouped.. or just apache owned?

    first though:
    if the latter... then you could create a special directory (or similar) and then set the GID bit on that directory so any files created in that directory belong to the group of that directory.

    second thought:
    have the script write the file then change the owner/group of the file?

    third thought:
    have apache set the user/owner on file creation.. not too sure about this but i know samba does this..
     
  3. EvolutionCrazy

    EvolutionCrazy Basic Pleskian

    23
    90%
    Joined:
    Jun 4, 2005
    Messages:
    65
    Likes Received:
    0
    dotcommers are you sure about that?

    i was thinking that plesk bandwidth monitor works by looking to the apache logs... not the file owner...
     
  4. serial-thrilla

    serial-thrilla Guest

    0
     
    same thing i was thinking but i thought i'd give him/her the benefit of the doubt.
     
  5. dotcommers

    dotcommers Guest

    0
     
    We have clients with mambo installations, and document managers, these use forms to upload files, some of which are 20 MB.

    when we look at the bandiwth used by our co-location providers, its much higher than plesk says.

    Plesks figure is more like the webstats figure that is given.

    I did download a file (Apache owned), through the website, about 40 times one day to see if this made a difference and the next day, the webstats showed no difference on that files bandwidth usage or hits to that file (it was listed in the total URL's section), and plesks bandwidth usage had changed by a similar amount.

    I'm not 100% sure that it is not monitoring these files, but from what I did to test, it is very likely.

    if there are any other suggestions (IE have I missed something obvious??? :eek:) I'd be glad to hear.

    changing the owner of all files is not an option with some of the scripts.

    many thanks

    Lyndon
     
  6. EvolutionCrazy

    EvolutionCrazy Basic Pleskian

    23
    90%
    Joined:
    Jun 4, 2005
    Messages:
    65
    Likes Received:
    0
    i've the reverse problem:

    i've some big files 300mb+ that are higly downloaded...

    but the provider switch report less then what plesk report...

    this is what the DC support has replied to me:

    I was thinking that plesk generate his usage stats by looking to the apache logs... and for apache logs a file owned by apache or owned by others doesn't make any difference..
     
Loading...