nfsen-ng: nfsen-ng: 400 - Bad Request. rrd_xport failed.
Dear All,
I am not sure if I am right here. I didn’t find a mailing for “nfsen-ng”
My issue I don’t get any data on the GUI.
I followed the instructions at https://github.com/mbolli/nfsen-ng to install on a fresh installed “Ubuntu 18.04.1 LTS” “nfdump” wasn’t found as packaged, so I compiled from source.
This is my file nfsen-ng/backend/settings/settings.php
<?php
/**
* config file for nfsen-ng
*
* remarks:
* * database name = datasource class name (case-sensitive)
* * log priority should be one of the predefined core constants prefixed with LOG_
*/
$nfsen_config = array(
'general' => array(
'ports' => array(
80, 22, 53,
),
'sources' => array(
'cs-sl0-s6506',
),
'db' => 'RRD',
),
'frontend' => array(
'reload_interval' => 60,
),
'nfdump' => array(
'binary' => '/usr/bin/nfdump',
'profiles-data' => '/var/nfdump/profiles-data',
'profile' => 'live',
'max-processes' => 2, // maximum number of concurrently running nfdump processes
),
'db' => array(
'Akumuli' => array(
//'host' => 'localhost',
//'port' => 8282,
),
'RRD' => array()
),
'log' => array(
'priority' => LOG_DEBUG, // LOG_INFO, LOG_DEBUG is very talkative!
)
);
I run
nfcapd -w -D -S 2 -B 1024000 -l /var/nfdump/profiles-data/live/cs-sl0-s6506 -p 10001
which writes sucessfully data in subdiretories like this
/var/nfdump/profiles-data/live/cs-sl0-s6506/2018/11/13/16/nfcapd.201811131620
But when I open my web-browser I get an error message:
Got 400 - Bad Request. rrd_xport failed. opening ‘/var/www/html/nfsen-ng/backend/datasources/data/cs-sl0-s6506.rrd’: No such file or directory
and syslog shows at the same time:
Nov 13 16:52:52 hpg911 apache2: nfsen-ng: Was not able to find /var/www/html/nfsen-ng/backend/datasources/data/cs-sl0-s6506.rrd Nov 13 16:52:52 hpg911 apache2: nfsen-ng: 400 - Bad Request. rrd_xport failed. opening ‘/var/www/html/nfsen-ng/backend/datasources/data/cs-sl0-s6506.rrd’: No such file or directory
I do not know where to configure a process to convert the pcap data to rrd files. I gave full permissions for /var/www/html/nfsen-ng/backend/datasources/data/ so it shouldn’t be a permissions issue.
RRDtool 1.7.0 is installed,
apachectl -M shows php7_module is installed, but nothing about rrd, probably OK.
“pecl list” tells me
rrd 2.0.1 stable
I started manually “./cli.php start”
./cli.php status Running: 14178
Any help is welcome.
// Hans
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 71 (31 by maintainers)
@FontouraAbreu I definitely will, thanks
Not sure - I am wondering if @mbolli runs into the same issue on a fresh Ubuntu 22.04 install 😕 I had to create the var/nfdump folder as well as the subsequent folders and assign permissions. After freshly installing, I noted that nfdump did not create a folder in /var/nfdump - so it appears that the version of nfdump in 22.04 is functioning and working entirely differently from where this program expects it to be. Going to to try to compile from source as well and check it it out.
Also - thank you for the adding service enable directions. I am a network engineer not true coder, so this is a huge learning curve for me!