Traffic Counter v.1.0 by Iosiphov Vladimir
                 .    ""    (      FreeBSD 5.2.1):
mysql-server41 (/usr/ports/databases/mysql41-server)
apache2 (/usr/ports/www/apache2)
php4 (/usr/ports/www/mod_php4)
php4-mysql module (/usr/ports/databases/php4-mysql)
php4-session module (/usr/ports/www/php4-session)
perl5 (/usr/posts/lang/perl5)
bpft4 (/usr/ports/net-mgmt/bpft) (     trafd.       trafd     	  bpft,    .   Linux,      bpft,  	trafd  : http://bpft4.sourceforge.net)
    sh (Bourne shell) :)

  .
   "   3- :
1 -  trafd,        ( , , , ...)         -.     .
2 -   sh  perl,      trafd  mysql        .
3 -  php    , ,         .

 .
  ./scripts  /usrlocal/etc/   traffic_count.      ,        /etc/crontab     . 
!!! ./scripts     !       !    ./scripts       !!!
      mysql       .        traffic.   ""    :
 mysql      ,       . :      <int_1>  (    ),   <int_2> .     :
traffic_01<int_1>
traffic_01<int_2>
traffic_02<int_1>
traffic_02<int_2>
.................
traffic_31<int_1>
traffic_31<int_2>
          31.       ./scripts/mysql/create_tabs_int1.sql  ./scripts/mysql/create_tabs_int2.sql.       .     <int_1>,<int_2>     . :
CREATE TABLE traffic_01<int_1> ... 
CREATE TABLE traffic_01rl0
     ,    ,     .    :
$ mysql -u root -h localhost < /<way_to_scripts>/create_tabs_int1.sql
   auth       :
$ mysql -u root -h localhost < /<way_to_scripts>/auth.sql
 mysql .     perl     trafd  mysql.          mysql:
my $dbase="DBI:mysql:traffic";      traffic.
my $user = "test";      DB
my $password = "test";   
my $iface = "<int_1>";     
my $tablename = "traffic";   ().    ,  traffic_01<int_1>
    ./scripts/trafficfill_int1.pl .     - ,      .   /etc/crontab   :
*/10    *       *       *       *       root    /usr/local/etc/traffic_count/traffic_count
 traffic_count -  sh  ./scripts/traffic_count.

     php .   ./traffic     -  apache (-: /usr/local/www/htdocs/).          ,   .pl .       DB      :)
  : .php      2- .         .        1 ,   1-2 .       ,   - .

:
 1)      10-15      sh,   cronom.
 2)    
 3)      ,     mysql,      
 4)        ,    ,  .
 5)     
 :
 1)  trafd   10-15         (     2     )
 2)     , ..     mysql  ,   30      3000-4000   ,       
 3)      postgres
 4)      dump       (    )
 5)          " ", ..            mysql    2- : 1-;  2- 
 6)         