summaryrefslogtreecommitdiffabout
path: root/trafsum/README
blob: cf7f56af80c3d6e09a1f90e9ee14dd41b2c93f16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
This is trafsum: a traffic data summator. It processes the information
from one or several log files and stores the data in MySQL database. The 
format of log files is as follows:

# <---- Slice time ---->        IP-Address      Inbytes Outbytes
Mon Jun  4 03:30:02 2001        213.130.7.7     4012128 7627102

To install:

 1. Copy the entire directory somewhere where you'd like it to be installed;
 2. Copy the file trafsum.conf to /etc and edit it to your liking. It
    should have access permissions of 600.
 3. If necessary, you may wish to edit <instdir>/translate. The necessary
    instructons are found in the comment at the start of the file;
 4. Add the script to your crontab:

	20 0 * * * /usr/local/trafsum/trafsum >/var/log/trafsum.err 2>&1

 5. Take cover and wait for the script to work.

Return to:

Send suggestions and report system problems to the System administrator.