Install Nfsen
Install Nfsen
Install Nfsen
IP Core Networks
Installing NFSEN & NFDUMP on Ubuntu and Next integrate with LibreNMS
- August 23, 2021
librenms@librenms:~$ lsb_release -a
Release: 20.04
Codename: focal
Project Link:
http://nfsen.sourceforge.net/
http://nfdump.sourceforge.net/
https://github.com/phaag/nfdump
https://www.�rst.org/resources/papers/conference2006/haag-peter-papers.pdf
Installation
Use the sudo user
sudo -i
Update ubuntu:
apt-get update
apt autoremove
or
1 of 7 05/04/2023, 18:58
Installing NFSEN & NFDUMP on Ubuntu and Next integrate ... https://ipcorenetworks.blogspot.com/2021/08/installing-...
Install Dependencies
apt install make gcc flex rrdtool librrd-dev libpcap-dev php librrds-perl libsocket6-perl
apache2 libapache2-mod-php libtool dh-autoreconf pkg-config libbz2-dev byacc doxygen
graphviz librrdp-perl libmailtools-perl build-essential autoconf
In the php.ini �le, be sure to specify the correct time zone, for example:
nano /etc/php/7.4/apache2/php.ini
date.timezone = Asia/karachi
sh ./autogen.sh
(it may be necessary to run /sbin/ldcon�g or ldcon�g as root after the installation)
cpanm Mail::Header
cpanm Mail::Internet
Con�gure nfsen:
cd ../nfsen-1.3.6p1 or cd /nfsen-1.3.6p1/etc/
cp nfsen-dist.conf nfsen.conf
nano ./etc/nfsen.conf
you may changed the following (apach2 and nginx work by default from the www-data user):
2 of 7 05/04/2023, 18:58
Installing NFSEN & NFDUMP on Ubuntu and Next integrate ... https://ipcorenetworks.blogspot.com/2021/08/installing-...
>
# user and group of the web server process
# All net�ow processing will be done with this user
$BASEDIR = "/var/nfsen";
$PREFIX = '/usr/local/bin';
$USER = "netflow";
$WWWUSER = "www-data";
$WWWGROUP = "www-data";
Install nfsen:
./install.pl ./etc/nfsen.conf
DocumentRoot /var/www/nfsen
DirectoryIndex nfsen.php
ServerAdmin webmaster@localhost
ServerName 192.168.88.163
DocumentRoot /var/www/nfsen
DirectoryIndex nfsen.php)
nano /etc/apache2/apache2.conf
3 of 7 05/04/2023, 18:58
Installing NFSEN & NFDUMP on Ubuntu and Next integrate ... https://ipcorenetworks.blogspot.com/2021/08/installing-...
Restart Apache:
systemctl apache2 restart
If you need to run nfsen on port 2055/udp, and it was taken by default by nfdump (by the nfcapd process), then stop it
before running nfsen:
kill -9 PID_NUMBER
#OR
%sources = (
'source1' => { 'port' => '9995', 'col' => '#0000ff', 'type' => 'net�ow' },
'source2' => { 'port' => '9996', 'col' => '#cc3333', 'type' => 'net�ow' },
'source3' => { 'port' => '9997', 'col' => '#99ff33', 'type' => 'net�ow' },
);
# OR
%sources = (
'ccr1016' => { 'port' => '9995', 'IP' => 'x.x.x.x', 'col' => '#0000ff', 'type' => 'net�ow' },
'ap�oor1' => { 'port' => '9995', 'IP' => 'x.x.x.x', 'col' => '#8B0000' },
'ap�oor2' => { 'port' => '9995', 'IP' => 'x.x.x.x', 'col' => '#DC143C'},
'ap�oor3' => { 'port' => '9995', 'IP' => 'x.x.x.x', 'col' => '#FF7F50'},
);
/etc/init.d/nfsen recon�g
Or
cd /var/nfsen/bin
./nfsen reconfig
./nfsen start
4 of 7 05/04/2023, 18:58
Installing NFSEN & NFDUMP on Ubuntu and Next integrate ... https://ipcorenetworks.blogspot.com/2021/08/installing-...
ln -s /var/nfsen/bin/nfsen /etc/init.d/nfsen
It remains to con�gure the web server or just create a symbolic link in the www directory (after that you can open nfsen
in a browser, for example http://192.168.88.157/nfsen/nfsen.php):
ln -s /var/nfsen/www/ /var/www/html/nfsen
ln -s /var/www/nfsen/ /var/www/html/nfsen
Make sure that nfsen starts when the operating system starts:
systemctl enable nfsen
Browse to:
http://yourip:portnumber
[Unit]
Description=NfSen Service
After=network.target
[Service]
Type=forking
PIDFile=/var/nfsen/var/run/nfsend.pid
ExecStart=/var/nfsen/bin/nfsen start
ExecStop=/var/nfsen/bin/nfsen stop
Restart=on-abort
[Install]
WantedBy=multi-user.target
Troubleshooting commands:
sudo netstat -tulpn
ls -l /var/nfsen/pro�les-stat/live
UP-Next Video
https://ipcorenetworks.blogspot.com/2022/02/installing-nfsen-nfdump-porttracker.html
5 of 7 05/04/2023, 18:58
Installing NFSEN & NFDUMP on Ubuntu and Next integrate ... https://ipcorenetworks.blogspot.com/2021/08/installing-...
_________________
Cacti Free Networking Monitoring Tool:
Cacti Tutorial PlayList:https://www.youtube.com/playlist?list=PL2iPlJTsTrSRcLWPSRi--dF7rN4RyUzWb
__________________________________
LibreNMS Free Networking Monitoring Tool:
LibreNMS Tutorials: https://www.youtube.com/playlist?list=PL2iPlJTsTrSRdSVlok674Bkou0zkrPbgb
__________________________________
CCNP ENCOR (350-401):
https://www.youtube.com/playlist?list=PL2iPlJTsTrSTpfE-r7M-NsHON3AcyFNSk
__________________________________
CCNP Enterprise Free Training:
https://www.youtube.com/playlist?list=PL2iPlJTsTrSTWw5DSSXG-kvbVmpAec06J
__________________________________
CCNP ENARSI (300-410):
https://www.youtube.com/playlist?list=PL2iPlJTsTrSQx_kwwr0ERU_Cmj_gsJ5Le
cpan App::cpanminus
cpan*m* Mail::Header
cpan*m* Mail::Internet
REPLY
Hi,
Many thanks for share!
What about nginx webserver setup?
REPLY
6 of 7 05/04/2023, 18:58
Installing NFSEN & NFDUMP on Ubuntu and Next integrate ... https://ipcorenetworks.blogspot.com/2021/08/installing-...
REPLY
Powered by Blogger
How
IP CORE to Install Cacti Network Monitoring Tool on CentOS 7 /RHEL Prerequisites Setup EPEL Repository Repositories For
NETWORKS
more extended package list, we �rst install the REMI, OpenNMS, and EPEL repositories: Setup EPEL repository only
CentOS 7is/aRHEL
IP CORE NETWORKS 7. yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install
Premium …
Cisco Consulting provider of Cisco
Products, Solutions, Training, and READ MORE
Professional Services for small,
medium, and large-sized businesses.
IP Core Networks | Your Education, Your Choice
We are a Cisco Premier Certi�ed Partner
- May 19, 2021
founded by a Cisco CCIE architect and
consultant with over 6 years of …
Our Youtube Channel Name : IP Core Networks Channel link: https://www.youtube.com/channel
VISIT PROFILE /UCbkH41NcPM3od4Xkij0M7zw Email address:cciepearl@gmail.com WhatsApp:+92-345-7770727
Channel Description: IP CORE NETWORKS is a Premium Cisco Consulting provider of Cisco Products, …
Report Abuse
7 of 7 05/04/2023, 18:58