Source code [Документация VAS Experts]

Source code

In case your OS is not CentOS or the default installation does not meet your requirements, you can download and install nfdump and nfsen from the sources1).

  1. Install the packets required to build and run nfsen:
    CentOS/RedHat/Oracle: 
    yum install gcc-c++,rrdtool-devel,perl-rrdtool,flex,perl-Socket6,perl-MailTools,httpd,php
    Ubuntu: 
    apt-get install build-essential flex librrd-dev byacc librrds-perl libmailtools-perl libsocket6-perl 
    apt-get install apache2 php5 libapache2-mod-php5 
  2. Download source code for nfdump and nfsen and unpack archives:
    wget http://vasexperts.ru/centos/6/x86_64/nfdump-1.6.9.2.CKAT.tar.gz
    wget http://vasexperts.ru/centos/6/x86_64/nfsen-1.3.6p1.2.CKAT.tar.gz
    tar xvzf nfdump-1.6.9.2.CKAT.tar.gz
    tar xvzf nfsen-1.3.6p1.2.CKAT.tar.gz
  3. Build and install nfdump:
    cd nfdump-1.6.9.2.CKAT
    ./configure --enable-scat --enable-nfprofile --prefix=/usr/bin
    make
    make install
  4. Configure nfsen (or keep defaults) and install it:
    cd nfsen-1.3.6p1.2.CKAT
    vi etc/nfsen.conf
    ./install.pl etc/nfsen.conf
  5. Enable nfsen start as a service. The example of init script for CentOS: etc/nfsen
1)
This source code differs from the original one in support of protocol names and independent systems in reports.