NFsen integration with LibreNMS - Getting flows but graphs not painting in device Netflow tab

Tags: #<Tag:0x00007f0642776fb0>

Hi there!

I’m configuring Nfsen in LibreNMS, and I got everything working. I have 3 different devices sending netflows, getting the flows and the graphs into NFSEN window.

The problem is that in LibreNMS, inside the device Netflow tab, I can see the flows in the Stats sub tab , but not able to see the graphs, nothing appears:

Do someone know what may it happen? Is that a permissions problem? That’s the only piece missing to get everything working.

====================================

Component Version
LibreNMS 1.58.1
DB Schema 2019_08_10_223200_add_enabled_to_users (147)
PHP 7.2.24-0ubuntu0.18.04.1
MySQL 10.1.43-MariaDB-0ubuntu0.18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

====================================

Many thanks

I decided to write here instead of opening new topic.
My NFSen instance works well (available through WWW, all graphs, stats are there. Functional 100%).
But in LibreNMS it look like this:

I have ‘Stats’ button, therefore I cannot use nfdump via LibreNMS (cannot look into flows - results are empty). This is how my “NFSen” part looks in the config.php:

$config[‘nfsen_enable’] = 1;
$config[‘nfsen_split_char’] = ‘_’;
$config[‘nfsen_rrds’][] = ‘/opt/nfsen/profiles-stat/live/’;
$config[‘nfsen_base’][] = ‘/opt/nfsen/’;
$config[‘nfsen_suffix’] = ‘_my_domain_here_com’;
$config[‘nfsen_last_max’] = 115200;
$config[‘nfsen_top_max’] = 500;
$config[‘nfsen_top_N’] = array( 10, 20, 50, 100, 200, 500 );
$config[‘nfsen_top_default’] = 20;
$config[‘nfsen_stat_default’] = ‘srcip’;
$config[‘nfsen_order_default’] = ‘packets’;
$config[‘nfsen_last_default’] = 900;
$config[‘nfsen_lasts’] = array(‘300’ => ‘5 minutes’, ‘600’ => ‘10 minutes’, ‘900’ => ‘15 minutes’, ‘1800’ => ‘30 minutes’, ‘3600’ => ‘1 hour’, ‘9600’ => ‘3
hours’, ‘38400’ => ‘12 hours’, ‘76800’ => ‘24 hours’, ‘115200’ => ‘36 hours’, ‘153600’ => ‘48 hours’);

Permissions seems fine, I tried declaring the:

$config[‘nfdump’] = ‘/usr/bin/nfdump’;

But it didn’t help.
Can anyone point me to the right direction?
Just in case:

[email protected]:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.59-7-g13c6309e8
DB Schema | 2019_12_16_140000_create_customoids_table (152)
PHP | 7.2.26-1+0~20191218.33+debian9~1.gbpb5a34b
MySQL | 10.1.41-MariaDB-0+deb9u1
RRDTool | 1.6.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.9.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

Update. Manual does not inform about having to make a symbolic link also in NFSen directory for profiles-data.

Solution:

cd /opt/nfsen/profiles-data/live
ln -s YOUR_SOURCE_NAME YOUR_DEVICE_NAME_IN_LIBRE

In my case:

ln -s juniper 100_100_100_100 (it’s it’s IP number).

Cheers :wink: