diff options
Diffstat (limited to 'trafsum/README')
-rw-r--r-- | trafsum/README | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/trafsum/README b/trafsum/README new file mode 100644 index 0000000..cf7f56a --- /dev/null +++ b/trafsum/README @@ -0,0 +1,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. + |