
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. PortTracker requires at least NfSen snapshot-20070110 and nfdump-1.5.x

1. Get nfdump-1.5.x 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, due to some 
code changes.  However, you are encouraged to install nfdump-1.5 and nfsen-1.2.3
to provit from all new features :)

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.
