Help - Search - Members - Calendar
Full Version: bwbar (bandwidth monitor) for Windows via browser
The Planet Forums > Operating Systems > Microsoft Windows > Windows HOWTOs
code007
I just found it. It works like bwbar on linux but this is for Windows servers. Any1 tried this ?

Product info
http://www.expstudio.com/bandwidthmonitor.htm

Demo
http://www.expstudio.com:7788
LighthousePoint
demo doesn't work :eek:
tmat
i am not disagreeing with you, but it worked
(redhat 9+Netscrape Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225)
LighthousePoint
oh, lol... My firewall blocked the odd-port... That's why I didn't get to it. Allowed the port, and got it, heh.
LighthousePoint
I looked into it, but you can get the same functionality straight from PHP for free...
NoBrains
Aye that could have some pie charts or so ;D
Bucanero
I was looking for Bandwith monitor for Win.

Found some cool one

http://www.bmextreme.lp23.com/

Lighthouse, which one is the free php one you are using ?

Thanks

Bucanero
LighthousePoint
I've seen some at www.hotscripts.com

You could easily roll your own, for example:

[php]$line = explode("n", `netstat -e`);
$line = explode(" ",$line[4]);
$cnt = 0;
for ($i=0;$i if ($line[$i]=="") continue;
if ($cnt==0) $text = ucfirst($line[$i]);
elseif ($cnt==1) $rec = $line[$i];
elseif ($cnt==2) $sent = $line[$i];
$cnt++;
}

$totalreceive = round($rec / (1048576),2);
$totalsent = round($sent / (1048576),2);

print "Received: ".$totalreceive."
SENT: ".$totalsent;
?>[/php]

Would return total data sent/received in bytes. You could easily modify that do take averages over time...
Bucanero
Thanks, only one questions

You said "Would return total data sent/received in bytes. You could easily modify that do take averages over time..."

The totals are for a day ? month ?

I guess are for this day right ?

Thanks again

Bucanero
LighthousePoint
Actually, they are totals since the networking service was started.

In order to make this useful on say, a monthly basis, you would need to restart your networking service every month (not neccessarily reboot the box).. Likewise, if you do reboot, you would lose your totals *unless* you had a backend DB that kept track. The DB would probably be the best solution -- as that also facilitates many various averages, such as monthly, daily, hourly, total, transfer rates, etc.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.