{"action":"created","issue":{"url":"https://api.github.com/repos/mbolli/nfsen-ng/issues/17","repository_url":"https://api.github.com/repos/mbolli/nfsen-ng","labels_url":"https://api.github.com/repos/mbolli/nfsen-ng/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/mbolli/nfsen-ng/issues/17/comments","events_url":"https://api.github.com/repos/mbolli/nfsen-ng/issues/17/events","html_url":"https://github.com/mbolli/nfsen-ng/issues/17","id":380330976,"node_id":"MDU6SXNzdWUzODAzMzA5NzY=","number":17,"title":"nfsen-ng: 400 - Bad Request. rrd_xport failed.","user":{"login":"hans-mayer","id":2944672,"node_id":"MDQ6VXNlcjI5NDQ2NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/2944672?v=4","gravatar_id":"","url":"https://api.github.com/users/hans-mayer","html_url":"https://github.com/hans-mayer","followers_url":"https://api.github.com/users/hans-mayer/followers","following_url":"https://api.github.com/users/hans-mayer/following{/other_user}","gists_url":"https://api.github.com/users/hans-mayer/gists{/gist_id}","starred_url":"https://api.github.com/users/hans-mayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hans-mayer/subscriptions","organizations_url":"https://api.github.com/users/hans-mayer/orgs","repos_url":"https://api.github.com/users/hans-mayer/repos","events_url":"https://api.github.com/users/hans-mayer/events{/privacy}","received_events_url":"https://api.github.com/users/hans-mayer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-13T17:09:05Z","updated_at":"2018-11-15T07:56:16Z","closed_at":null,"author_association":"NONE","body":"Dear All, \r\n\r\nI am not sure if I am right here. I didn't find a mailing for \"nfsen-ng\" \r\n\r\nMy issue I don't get any data on the GUI. \r\n\r\nI followed the instructions at https://github.com/mbolli/nfsen-ng to install on a fresh installed \"Ubuntu 18.04.1 LTS\" \r\n\"nfdump\" wasn't found as packaged, so I compiled from source. \r\n\r\nThis is my file  nfsen-ng/backend/settings/settings.php \r\n\r\n```\r\n<?php\r\n/**\r\n * config file for nfsen-ng\r\n *\r\n * remarks:\r\n * * database name = datasource class name (case-sensitive)\r\n * * log priority should be one of the predefined core constants prefixed with LOG_\r\n */\r\n\r\n$nfsen_config = array(\r\n    'general' => array(\r\n        'ports' => array(\r\n            80, 22, 53,\r\n        ),\r\n        'sources' => array(\r\n            'cs-sl0-s6506',\r\n        ),\r\n        'db' => 'RRD',\r\n    ),\r\n    'frontend' => array(\r\n        'reload_interval' => 60,\r\n    ),\r\n    'nfdump' => array(\r\n        'binary' => '/usr/bin/nfdump',\r\n        'profiles-data' => '/var/nfdump/profiles-data',\r\n        'profile' => 'live',\r\n        'max-processes' => 2, // maximum number of concurrently running nfdump processes\r\n    ),\r\n    'db' => array(\r\n        'Akumuli' => array(\r\n            //'host' => 'localhost',\r\n            //'port' => 8282,\r\n        ),\r\n        'RRD' => array()\r\n    ),\r\n    'log' => array(\r\n        'priority' => LOG_DEBUG, // LOG_INFO, LOG_DEBUG is very talkative!\r\n    )\r\n);\r\n\r\n\r\n```\r\nI run \r\n \r\n\r\n> nfcapd -w -D -S 2 -B 1024000 -l /var/nfdump/profiles-data/live/cs-sl0-s6506 -p 10001\r\n\r\n\r\nwhich writes sucessfully data in subdiretories like this \r\n\r\n> /var/nfdump/profiles-data/live/cs-sl0-s6506/2018/11/13/16/nfcapd.201811131620\r\n\r\n\r\nBut when I open my web-browser I get an error message: \r\n>   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\r\n\r\nand syslog shows at the same time: \r\n\r\n> 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\r\n> 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\r\n\r\nI do not know where to configure a process to convert the pcap data to rrd files. \r\nI gave full permissions for /var/www/html/nfsen-ng/backend/datasources/data/ \r\nso it shouldn't be a permissions issue. \r\n\r\nRRDtool 1.7.0 is installed, \r\n\r\napachectl -M shows php7_module is installed, but nothing about rrd, probably OK. \r\n\r\n\"pecl list\" tells me \r\n> rrd     2.0.1   stable\r\n\r\nI started manually  \"./cli.php start\" \r\n\r\n> ./cli.php status\r\n> Running: 14178\r\n\r\nAny help is welcome.\r\n\r\n// Hans \r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mbolli/nfsen-ng/issues/comments/438949939","html_url":"https://github.com/mbolli/nfsen-ng/issues/17#issuecomment-438949939","issue_url":"https://api.github.com/repos/mbolli/nfsen-ng/issues/17","id":438949939,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODk0OTkzOQ==","user":{"login":"mbolli","id":722725,"node_id":"MDQ6VXNlcjcyMjcyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/722725?v=4","gravatar_id":"","url":"https://api.github.com/users/mbolli","html_url":"https://github.com/mbolli","followers_url":"https://api.github.com/users/mbolli/followers","following_url":"https://api.github.com/users/mbolli/following{/other_user}","gists_url":"https://api.github.com/users/mbolli/gists{/gist_id}","starred_url":"https://api.github.com/users/mbolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbolli/subscriptions","organizations_url":"https://api.github.com/users/mbolli/orgs","repos_url":"https://api.github.com/users/mbolli/repos","events_url":"https://api.github.com/users/mbolli/events{/privacy}","received_events_url":"https://api.github.com/users/mbolli/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T07:56:16Z","updated_at":"2018-11-15T07:56:16Z","author_association":"OWNER","body":"> ```\r\n> PHP Notice:  Undefined offset: 1 in /var/www/html/nfsen-ng/backend/common/import.php on line 107\r\n> Notice: Undefined offset: 1 in /var/www/html/nfsen-ng/backend/common/import.php on line 107\r\n> ```\r\nCan you post a listing of your nfcapd.* files in your profiles-data directory?\r\nIn the master branch I added a log output if the files have the wrong file name syntax, if you'd like to pull once more.\r\n\r\n> Is there a way to run \"nfdump\" with all its options and arguments once from the command line and see if there are any errors ? and to verify what are the results ?\r\n \r\nYes of course, nfdump is a normal command line tool, for instance:\r\n```bash\r\n$ nfdump -M cs-sl0-s6506 -r 2018/11/15/nfcapd.201811151000 -s dstport:p \"dst port=80\" -o csv\r\nts,te,td,pr,val,fl,flP,ipkt,ipktP,ibyt,ibytP,ipps,ipbs,ibpp\r\n2017-04-30 14:59:38,2017-04-30 15:04:31,293.000,TCP,80,90,98.9,100,99.0,5654,99.2,0,154,56\r\n2017-04-30 15:01:47,2017-04-30 15:01:47,0.000,UDP,80,1,1.1,1,1.0,46,0.8,0,0,46\r\n\r\nSummary\r\nflows,bytes,packets,avg_bps,avg_pps,avg_bpp\r\n91,5700,101,155,0,56\r\n```\r\n\r\n"}}
{"actor":{"display_login":"mbolli"}}