Menu

#564 Issue with nfsen in fetching sflow data from Linux host

Website
open
GnuWin
None
1
2016-05-01
2016-05-01
No

Hi,

I have two VMs.

  1. The first VM is at AWS EC2 instance (red hat). I am using this system as sflow agent. I have installed hsflowd in this machine. my hsflowd.conf file looks like following:

DNSSD = off
collector {
ip = 192.168.234.133
udpport = 2222

  1. The second VM is my VMWare ubuntu 14.04. I have installed nfdump 1.6.1 and nfsen 1.3.4 on this machine. My nfsen.conf file looks as follows:

$BASEDIR = "/var/nfsen";

$BINDIR="${BASEDIR}/bin";

$LIBEXECDIR="${BASEDIR}/libexec";

$CONFDIR="${BASEDIR}/etc";

$HTMLDIR = "/var/www/html/nfsen/";

$DOCDIR="${HTMLDIR}/doc";

$VARDIR="${BASEDIR}/var";

$PROFILESTATDIR="${BASEDIR}/profiles-stat";

$PROFILEDATADIR="${BASEDIR}/profiles-data";

$BACKEND_PLUGINDIR="${BASEDIR}/plugins";

$FRONTEND_PLUGINDIR="${HTMLDIR}/plugins";

$PREFIX = '/usr/local/bin';

$USER = "www-data";

$WWWUSER = "www-data";
$WWWGROUP = "www-data";

$BUFFLEN = 2000;

%sources = (
#'upstream1' => { 'port' => '9995', 'col' => '#0000ff', 'type' => 'sflow' },
'sflowagent' => { 'port' => '2222', 'IP' => '52.36.241.180', 'col' => '0000ff', 'type' => 'sflow' },
#'DESKTOP-VI701RC' => { 'port' => '9995', 'IP' => '192.168.2.115', 'col' => '00CC33', 'type' => 'sflow' },
);

Here, I have defined only one source: "sflowagent".

When I run the command "nfcapd -E -p 2222 -l /tmp/nfcap-test", I dont get any data however only files with 276 kb size are created without any data.

Also, when I start nfsen webgui, it does not show any graph.

Can anyone please help me with this as this is very urgent and I have tried almost everything as per my knowledge.

Regards,
Govind Prasad

Discussion