vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Display Bandwidth usage (https://vborg.vbsupport.ru/showthread.php?t=71474)

rex_b 11-08-2004 12:57 AM

Display Bandwidth usage
 
Have a display box showing:

We have used this much bandwidth this month, and we have this much left.

How hard would that be to make?

Benj 11-08-2004 07:15 AM

interesting

Beermonster 11-08-2004 08:42 AM

It's something I've been working on, not only showing the bandwidth but also other server stats, here's the work so far http://www.scale-models.co.uk/bandwidth.php

TheMusicMan 11-08-2004 09:03 AM

Here's something I spotted the other day on my webhosts forums.

Quote:

http://www.xpenguin.com/calcbandi.php

... and then setup a cron file that checks your pages every 30 minutes or so and updates a file with your bandwidth usage for the day.

Then you could a header that gets included in all pages with a simple:

PHP Code:

   CODE
   
  <?php
  
  
if($bandwidth 120000)
    echo 
"Sorry, try back tomorrow. Donations are appreciated.";
  
  else
    
//display the normal page
  
  
?>

(Oversimplified a bit of course)

Freezerator 11-08-2004 09:04 AM

That is simply displaying the mrtg graphs and pointing to your webalizer stats.

To use that, you must install mrtg (linux only?) and make a seperate page where you link to that.

Beermonster 11-08-2004 09:28 AM

Quote:

Originally Posted by Freezerator
That is simply displaying the mrtg graphs and pointing to your webalizer stats.

To use that, you must install mrtg (linux only?) and make a seperate page where you link to that.


It is, unless you can think of any other way of getting server stats? I have been doing this just for my own use and not really gone too far in to it, but I'm sure there is a better way, also mrtg works on Unix & NT

Remi 11-08-2004 11:53 AM

Very interesting :)

rex_b 11-08-2004 01:13 PM

Quote:

Originally Posted by Beermonster
It's something I've been working on, not only showing the bandwidth but also other server stats, here's the work so far http://www.scale-models.co.uk/bandwidth.php


ooooh.. gimme gimme.!!!


All times are GMT. The time now is 06:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01038 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete