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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:dpi:dpi_components:utilities:oldutility:nfsen:nfsen_src [2023/09/12 09:41] – ↷ Page moved from en:dpi:dpi_components:nfsen:nfsen_src to en:dpi:dpi_components:utilities:oldutility:nfsen:nfsen_src elena.krasnobryzhen:dpi:dpi_components:utilities:oldutility:nfsen:nfsen_src [2024/09/26 15:29] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Source code ======+====== Source code ====== 
 +{{indexmenu_n>7}} 
 +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 sources((This source code differs from the original one in support of protocol names and independent systems in reports.)). 
 + 
 +  - Install the packets required to build and run nfsen: <code> 
 +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  
 +</code>  
 +  - Download source code for nfdump and nfsen and unpack archives: <code>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</code> 
 +  - Build and install nfdump: <code>cd nfdump-1.6.9.2.CKAT 
 +./configure --enable-scat --enable-nfprofile --prefix=/usr/bin 
 +make 
 +make install</code> 
 +  - Configure nfsen (or keep defaults) and install it: <code>cd nfsen-1.3.6p1.2.CKAT 
 +vi etc/nfsen.conf 
 +./install.pl etc/nfsen.conf 
 +</code>  
 +  - Enable nfsen start as a service. The example of init script for CentOS: etc/nfsen