. . :. :: :.: ::.::: .:. .: : ::: .. :. .:..: :.. ::

Smoothwall Mods for Smoothwall version 0.9.9 se

HOME» TRAFFIC GRAPH MOD
:. Traffic Graph mod - updated 9-11-2002
This mod changes the traffic graph page to include information about how much you have downloaded.
I found that even though the graphs were pretty to look at it really didn't give you any information on the volume of data downloaded/uploaded.

Version 7 changes :

- Better web intergration. Tabbed interface between pages.
- Secured config pages.
- Monthly archiving of old monthly summary pages.
- Custom graphs page. Generate graphs with a duration you select.
- Ability to delete old log files.

.:Downloads:.

smoothkoops07.tar - Last uploaded 9-11-2002

.:Screenshots:.


Summary page
Shows todays transfers and also this months totals.


Daily traffic
Shows this months daily transfers and also peak/off peak if supported by the ISP .


Monthly Traffic
Shows previous months traffic.


Custom graphs
Allows you to generate some graphs the way you want them.


Config Form
Allows you to configure the traffic mod. Allows for different ISP's and month end dates.


Traffic logs
Allows you to delete old log files and recover some space on the system.

Step 1.
Download the latest smoothwall traffic mod tar file.

Get it here.

Step 2.
Transfer the file to your smoothwall machine. You can do this by using a tool like winscp.

Step 3.
unpack the tar file. If you transfered the file to your root dir of your smoothwall box then type "tar xvf smoothkoops05.tar".

You should see something similar to :

root@smoothwall/# tar xvf smoothkoops07.tar
smoothkoops/
smoothkoops/account.pl
smoothkoops/onemonth.pl
smoothkoops/traffic_vars.pl
smoothkoops/graphs.cgi
smoothkoops/savesettings.cgi
smoothkoops/trafficconfig.cgi
smoothkoops/daily.cgi
smoothkoops/install
smoothkoops/information.html
smoothkoops/koops.cron

Step 4.
Run the install script. Do this by typing "cd smoothkoops" then "./install". You should see the script run and copy the files to their required places.

NOTE : As you have a smoothwall box it is assumed that you DO want some security on your network. As such I advise you to have a look at the script and see what it does!
It is always good to know what something is doing. I havn't made anything to back door your box but it doesn't hurt to make sure ;)

Step 5.
Configure the traffic mod for your ISP. See the "Info" page then the "help" for online details.


Traffic Volume config

End of Billing Month

End of your billing month.ie. it would be 11 if your end of billing month was the 11th.
This is where your ISP said your end of your billing month is.
Note: netspace have this in their usage meter.


Data line

This is the line on which the data we want is located.
ie. in /var/log/ip-acct have a look at one of your logs it should look similar to the one below

Incoming GREEN #line1
Outgoing GREEN #line2
Incoming RED (PPP) #line3
Outgoing RED (PPP) #line4
Incoming RED (ISDN PPP) #line5
Outgoing RED (ISDN PPP) #line6
#-#-#-#-# #line7
12 969 #line8
11 441 #line9
11 441 #line10
11 740 #line11
0 0 #line12
0 0 #line13

In this case we want the internet facing interface so we want our data from lines 10 and 11 (incoming red and outgoing red respectively)
So we would enter "10" here in this case.

Pacific Internet users will see an extra option the next time they update the volume config.
The "Pacific Internet only" option refers to the "extras" that can be bought from this ISP. These being :

Latenight Express - Unlimited downloads 1am - 8am, 7 days a week $10
Weekend Warrior - Unlimited downloads 12am Saturday (midnight Friday) - 8am Monday $20
Combination - Combines Latenight Express and Weekend Warrior options $30


.:Additional Notes/thoughts:.
There is a job that will run the script to update the page every 5 minutes.

If you feel that this is too much/not enough it can easily be changed.
Do a "crontab -l > mycron". This will output the contents of the crontab (Job scheduling program).
Edit this file and change it to appropriate values to site your site.Then do a "crontab mycron" to put it back in.

If you are unsure of what each of the fields in cron are for do a search in google for UNIX cron.
You should find some good help on how to do it. Otherwise "whim me" :)

© 2002 Koops.