21.04.2015

nfsen

Установка:

NFDUMP:

./configure --enable-nfprofile --enable-nftrack --with-rrdpath=/usr/bin --prefix=/usr
make
make install

NFSEN:

Устанавливаем необходимые модули perl.
cpan Mail::Header
cpan Mail::Internet

tar -xvzf nfsen-1.3.6p1.tar.gz
cd nfsen-1.3.6p1
cp etc/nfsen-dist.conf etc/nfsen.conf
vim etc/nfsen.conf

# Required for default layout
$BASEDIR = "/usr/local/nfsen";

# NfSen html pages directory:
# All php scripts will be installed here.
$HTMLDIR    = "/var/www/nfsen/";

# nfdump tools path
$PREFIX  = '/usr/bin';

# Run nfcapd as this user
# This may be a different or the same uid than your web server.
# Note: This user must be in group $WWWGROUP, otherwise nfcapd
#       is not able to write data files!
$USER    = "jflow";

# user and group of the web server process
# All netflow processing will be done with this user
$WWWUSER  = "apache";
$WWWGROUP = "apache";

# Receive buffer size for nfcapd - see man page nfcapd(1)
$BUFFLEN = 200000;

$SUBDIRLAYOUT = 0;

%sources = (
    'mx960'    => { 'port' => '2055', 'col' => '#0000ff', 'type' => 'netflow' },
);



./install.pl etc/nfsen.conf
/usr/local/nfsen/bin/nfsen start
Если при запуске nfsen будет всплывать ошибка с сокетами, делаем следующее:

files "libexec/AbuseWhois.pm" and "libexec/Lookup.pm")

Change :
use Socket6;
with
Socket6->import(qw(pack_sockaddr_in6 unpack_sockaddr_in6 inet_pton
getaddrinfo));
[10.03.2015 16:24:32] yarik09_05: для себя описал)