
Please note: This is prototype software. Use it at you own risk :)
There is no automated install procedure. Follow the steps below to install
PortTracker. 

1. Get nfdump-1.5.8 and compile nfdump
There is no need to replace your current nfdump-1.5 installation on your system, 
but Portracker needs nfdump-1.5 for proper compile and linking.
If you plan to use nfdump-1.6b, copy nftrack-1.6b.c to nftrack.c

2. Edit file do_compile: 
Set NFDUMP to the path of nfdump source directory.
Set RRDINCLUDE to the directory containing rrd.h.
set RRDLIB to the directory containing librrd.

3. run ./do_compile It should produce the binary 'nftrack'
   Install this binary in the same directory as you have your nfdump binaries.

4. Create somewhere the port DBs directory:
This directory needs to be writable by the user $USER configured in nfsen.conf
and needs about 10GB of space. 

5. Edit Porttracker.pm:
Set $PORTSDBDIR to the port DBs directory.

6. Copy PortTracker.pm to the NfSen backend plugin dir.
   Copy PortTracker.php to the NfSen frontend plugin dir.

7. Edit nfsen.conf: Add the plugin for profile 'live': 
Example:
@plugins = (
	[ 'live',   'PortTracker'],
);

8. Initialize the ports-db:
As $USER run 'nftrack -I -d <path-to-ports-DBs>'
This takes some minutes or so ... have a coffee

9. Restart NfSen:
Run './nfsen reload'
Have a look at the syslog file to see if PortTracker loaded successfully:

10. After the next 5min update cycle: Point your browser to the NfSen page 
and select the Plugin Tab.
