Pmacct

From HackerNet
Revision as of 17:13, 8 January 2016 by Helikopter (talk | contribs)
Jump to: navigation, search

Pmacct är ett verktyg för att samla ihop och aggregera data om IP-trafik. Som t.ex. Ntopng. Det kan (med dess underkomponenter) samla in interface-trafik (libpcap), NetFlow v1/v5/v7/v8/v9, IPFIX, sFlow och ULOG.

Installation

Ubuntu

cd /usr/local/src/
curl -O http://www.pmacct.net/pmacct-1.5.2.tar.gz
tar -zxvf pmacct-1.5.2.tar.gz && cd pmacct-1.5.2/
sudo apt-get -y install libjansson-dev libpcap-dev make libsqlite3-dev zlib1g-dev

Installation

./configure --enable-ipv6 --enable-jansson
make
make check
make install

Verifiering

whereis pmacct
whereis pmacctd
whereis nfacctd

Filer

mkdir /etc/pmacct       # for configuration files
mkdir /var/run/pmacct   # for PID files
mkdir /var/spool/pmacct # for plugins pipes
mkdir /var/lib/pmacct   # for plugins output