#1  
Old 8th May 2008, 13:44
Ryanmt Ryanmt is offline
Member
 
Join Date: Apr 2008
Posts: 92
Thanks: 15
Thanked 6 Times in 4 Posts
Default Overall stats page

I would like a page that displays a list of sites on the server and their quotas/usages. Also a grand total of how much bandwidth has been used in that month
Reply With Quote
Sponsored Links
  #2  
Old 9th May 2008, 13:16
minimalist minimalist is offline
Member
 
Join Date: Aug 2007
Location: Romania
Posts: 30
Thanks: 20
Thanked 3 Times in 3 Posts
Default

vnStat + vnStat PHP
__________________
Proudly using ISPConfig on Debian servers.
Reply With Quote
The Following User Says Thank You to minimalist For This Useful Post:
Ryanmt (9th May 2008)
  #3  
Old 9th May 2008, 15:40
Ryanmt Ryanmt is offline
Member
 
Join Date: Apr 2008
Posts: 92
Thanks: 15
Thanked 6 Times in 4 Posts
Default

Not quite what i was after.. but it will do the trick. Thanks

to install on ubuntu i did

Code:
apt-get install vnstat
then i ran ifconfig and got the name of the interface that is in use.

Code:
ifconfig
then start vnstat replace eth0 with your interface name

Code:
sudo vnstat -u -i eth0
once its running make the dir you want to put the phpstats into replace webXX with your domain directory.

Code:
cd /var/www/webXX/web/
mkdir server
.. you can also login to the ftp to make the folder but make sure it is chmodded to 777 or vnstat cant write to it.

edit crontab and add the following replace XX with your domain folder and eth0 with your network adapter name.

Code:
crontab -e
Code:
0,30 * * * * vnstat --dumpdb -i eth0 > /var/www/webXX/web/server/vnstat_dump_eth0
upload the PHP stats into the same folder and edit config to read.

Code:
    $vnstat_bin = '';
    $data_dir = '/var/www/webXX/web/server';
you can now access the stats via www.yourdomain.com/server

stats are updated every at 0mins and 30mins of every hour so it may take a little while for the stats to update. you can force and update by running.

Code:
 vnstat --dumpdb -i eth0 > /var/www/webXX/web/server/vnstat_dump_eth0
Reply With Quote
  #4  
Old 9th May 2008, 18:04
minimalist minimalist is offline
Member
 
Join Date: Aug 2007
Location: Romania
Posts: 30
Thanks: 20
Thanked 3 Times in 3 Posts
Default

And lets not forget Mailgraph.
__________________
Proudly using ISPConfig on Debian servers.
Reply With Quote
  #5  
Old 21st July 2008, 21:43
kassie kassie is offline
Senior Member
 
Join Date: May 2007
Location: Johannesburg, South Africa
Posts: 136
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Quote:
upload the PHP stats into the same folder and edit config to read.


Code:
$vnstat_bin = '';
$data_dir = '/var/www/webXX/web/server';
What do i do here
Reply With Quote
  #6  
Old 22nd July 2008, 00:50
Ryanmt Ryanmt is offline
Member
 
Join Date: Apr 2008
Posts: 92
Thanks: 15
Thanked 6 Times in 4 Posts
Default

edit config.php
Reply With Quote
  #7  
Old 22nd July 2008, 08:18
kassie kassie is offline
Senior Member
 
Join Date: May 2007
Location: Johannesburg, South Africa
Posts: 136
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Thanks for the help so far.

I don't however get this thing to work.

After forcing the command, i now have 2 files in the folder.
config.php and vnstat_dump_eth0

Is this right?
When i now type http://www.server/server i get the following screen
403 Error - Forbidden

I have chmoded the folder to 777


Isn't there supposed to be an index.php or index.htm??


Sorry, fairly new to linux. Thanks for the help
Reply With Quote
  #8  
Old 22nd July 2008, 09:00
kassie kassie is offline
Senior Member
 
Join Date: May 2007
Location: Johannesburg, South Africa
Posts: 136
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Sorry....

My bad,

I had to download the files from the php frontend stuff. All is working now.

I would like to seset the counters, where do i do that.
It is registering a lot of data and it is not all correct. I had the server up for a year now but i think the overall traffic is correct but the day and week is wrong.

I would like to start from scratch with traffic monitor from 1 Aug.
Reply With Quote
  #9  
Old 23rd July 2008, 18:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

The traffic stats are stored in the table isp_traffic. To start from scratch, you can delete all records in that table.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
changes in /web do not affect the page damaltor Installation/Configuration 2 16th March 2008 12:33
New Default Holding Page mphayesuk General 13 7th July 2007 16:25
not seeing shared IP page andyreynolds Installation/Configuration 2 21st February 2007 23:24
Traffic stats for all domains on one single page? Herbert Feature Requests 2 1st January 2007 23:28
Alternate stats page djtremors Developers' Forum 10 2nd August 2006 00:34


All times are GMT +2. The time now is 05:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.