-
HTTP traffic meter
Hi!
My boss gets irritated when my HTTP traffic gets over 400 Mbytes/month :D, so I'm about to write a tool which measures my network traffic. I searched for such tools on the net, but they are not really what I need, as they usually measure the whole network traffic, not only the HTTP downloads.
So I'd need some help to start my project (e.g. which API-s should I use to monitor my traffic through our proxy server).
Any help would be welcome!
Thank you in advance.
Have a nice CODE!
-
-
I use IPTraf on our internet gateway machine. I monitored my own traffic this month just to see how much I use in a typical month, and found out that it was top of the pile with just under 3gb of http traffc, and 7gb of other traffic! Now I now I surf the web, but I didn't think I downloaded that much!
-
If your running a REAL webserver like APACHE, there are MOD_THROTTLE and MOD_BANDWIDTH that allow you to fine tune (and throttle if you so desire). You can use MRTG (multi-router traffic grapher) and it does alot more than just routers. And finally you could use WEBALIZER. It can tell you based on file size, and hits to files, the total amount transfered. The first 2 only run on apache, the second two run on just about anything. Im sure you could even find a winblows port of them if you were stuck with an IIS box (A malware magnet). Your boss cares about 400mb? Who gives a coders butt about 400 mb? Im paying 75 cents (Yes its Cogent, but my clients wouldnt know good routing either way) per gig of traffic, and i have servers doing 800+ gig per month. Ill loan you a dollar a month for all your hits lol. Good luck, beware of managements ignorance. (He is probablly mad because your paying quite a bit more than you should be for bandwidth)