Hi,

I've set up NFSen (1.3.6p1) on a Machine running FreeBSD 10.0.

Installed all prerequisites, i.e.

apache24-2.4.10
mod_php5-5.4.34
php5-5.4.34
perl5-5.16.3

etc.

In nfsen.conf I've got entries for the respective routers delivering
their netflow data:

...
    'isp-router-1'    => { 'port'    => '2600', 'col' => '#00008B', 'type' => 
'netflow' },
    'isp-router-2'    => { 'port'    => '2601', 'col' => '#0000ff', 'type' => 
'netflow' },
    'core-router'    => { 'port'    => '2602', 'col' => '#ff0000', 'type' => 
'netflow' },
    'core-router2'    => { 'port'    => '2603', 'col' => '#ff6600', 'type' => 
'netflow' },
...

I ran the "install.pl" in order to get everything in place and did an
"nfsen start". Up to this point everything went fine - here's the output from 
starting NFSen:

[root@mybox ~]# nfsen start
Starting nfcapd:(core-router2)[2958] (core-router)[2961] (isp-router-1)[2964] 
(isp-router-2)[2967] 
Starting nfsend.
[root@mybox ~]# nfsen status
NfSen version: 1.3.6p1
NfSen status:
Collector for (core-router2) port 2603 is running [2958].
Collector for (core-router) port 2602 is running [2961].
Collector for (isp-router-1) port 2600 is running [2964].
Collector for (isp-router-2) port 2601 is running [2967].
nfsen daemon:  pid: [2969] is running.
[root@mybox ~]# 

But then the troubles started:



1) Error displayed on webpage

The error 

ERROR: nfsend socket_read() communication error: Connection reset by peer!

is displayed in red near the top of the page.


2) No data displayed on the webpage(s)

On the webpage no data is displayed (graphs remain empty) but on the
other hand data definitely is coming in. For exampl files in
/var/nfsen/profiles-data/live/isp-router-1/2014/10/31 grow both in
size and number. So data seems to arrive and being "captured" by
nfdump though.


3) Can't stop nfsen-related processes

When trying to stop nfsen with "nfsen stop" nfsen related processes
refuse to stop:

Shutdown nfcapd: (core-router2)[2958].......... Process [2958] does not want to 
terminate!
 (core-router)[2961].......... Process [2961] does not want to terminate!
 (isp-router-1)[2964].......... Process [2964] does not want to terminate!
 (isp-router-2)[2967].......... Process [2967] does not want to terminate!
 .
Shutdown 
nfsend:[2969].....................................................................................................................
#

Running "nfsen stop" a second time stops the "nfcapd" processes but
not nfsen (I still get the "Process ... does not want to terminate"
for the nfsen process.


BTW, the log doesn't say anything about an error or such

Oct 31 13:39:59 mybox nfsen[2968]: Startup. Version: 1.3.6p1 $Id: nfsend 52 
2012-01-23 16:23:08Z peter $
Oct 31 13:39:59 mybox nfsen[2969]: nfsend: [2969]
Oct 31 13:39:59 mybox nfsen[2970]: Comm server started: [2970]
Oct 31 13:40:00 mybox nfsen[2970]: connection on UNIX socket
Oct 31 13:40:00 mybox nfsen[2970]: comm server started: 2973
Oct 31 13:40:00 mybox nfsen[2973]: Cmd Decode: signal
Oct 31 13:40:00 mybox nfsen[2973]: Cmd Decode: quit
Oct 31 13:40:00 mybox nfsen[2969]: Signal 'start-periodic'
Oct 31 13:40:00 mybox nfsen[2969]: Run periodic at Fri Oct 31 13:40:00 2014
Oct 31 13:40:00 mybox nfsen[2969]: Prepare profiling './live'
Oct 31 13:40:00 mybox nfsen[2969]: 0 channels/alerts to profile
Oct 31 13:40:00 mybox nfsen[2969]: No continous profiles - nothing to profile
Oct 31 13:40:00 mybox nfsen[2969]: Update profile live in group .
Oct 31 13:40:00 mybox nfsen[2969]: Error reading channel stat information. 
Missing key 'first'
Oct 31 13:40:00 mybox last message repeated 3 times
Oct 31 13:40:00 mybox nfsen[2969]: Set new profile size: 0
Oct 31 13:40:00 mybox nfsen[2970]: comm child[2973] terminated with no exit 
value
Oct 31 13:40:00 mybox nfsen[2969]: Failed get stat info for requested time slot
Oct 31 13:40:00 mybox nfsen[2969]: Failed get stat info for requested time slot
Oct 31 13:40:00 mybox nfsen[2969]: Add .:live:201410311335 for plugin processing
Oct 31 13:40:01 mybox nfsen[2969]: Run plugins for 201410311335
Oct 31 13:40:01 mybox nfsen[2970]: connection on UNIX socket
Oct 31 13:40:01 mybox nfsen[2970]: comm server started: 2978
Oct 31 13:40:01 mybox nfsen[2978]: Cmd Decode: run-plugins
Oct 31 13:40:01 mybox nfsen[2978]: Plugin Cycle: ., live, 201410311335
Oct 31 13:40:01 mybox nfsen[2978]: Cmd Decode: quit
Oct 31 13:40:01 mybox nfsen[2969]: Run plugins done.
Oct 31 13:40:01 mybox nfsen[2969]: Check alerts for Fri Oct 31 13:35:00 2014
Oct 31 13:40:01 mybox nfsen[2969]: Check alerts done.
Oct 31 13:40:01 mybox nfsen[2969]: Run expire at Fri Oct 31 13:40:00 2014
Oct 31 13:40:01 mybox nfsen[2969]: Expire profile live group . low water mark: 
90%%
Oct 31 13:40:01 mybox nfsen[2970]: comm child[2978] terminated with no exit 
value







So here are my questions:

o) Has anybody seen these problems before?

o) Any known cure agains this?

o) Any way to turn on debug/logging so I get an idea as to what's
going on here?

Thanks much in advance for your help,
-ewald


------------------------------------------------------------------------------
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to