Hi Peter,

Peter Haag wrote:

> PortTracker is very resource intensive, in terms of CPU. The CPU is spent
> in updating the RRD DBs. Usually nftrack needs about 30s to run for a 5min 
> slot.
> 
> There is an issue, which results in your behaviour, when stopping NfSen, and
> restart it some time later. nftrack tries to sync up and updates the 24 
> statistic
> over all the missing timeslots, which may not complete in a 5min slot. You 
> may overcome
> this issue, by applying the patch appended. Which ignores this update, if too 
> long ago.

Haven't had the time to look at this before now. I've installed this
patch, but now I have another problem.

> But if your job does not complete whithin 30s to 1min under normal operation 
> - with no interruption 
> of NfSen, then you need to upgrade the hardware.

Seems like nftrack is getting a segmentation fault.

Here is some output from syslog:
Mar 23 15:25:30 vm02 nfsen[5119]: comm child 7840 terminated Exit: 0,
Signal: 13, Core: 0
Mar 23 15:30:02 vm02 /usr/local/bin/nfcapd[5113]: Ident: 'vakum_gw'
Flows: 180, Packets: 479, Bytes: 45345, Sequence Errors: 0, Bad Packets: 0
Mar 23 15:30:21 vm02 /usr/local/bin/nfcapd[5116]: Ident: 'uninett_gw'
Flows: 0, Packets: 0, Bytes: 0, Sequence Errors: 0, Bad Packets: 0
Mar 23 15:30:30 vm02 nfsen[5118]: Run periodic at Fri Mar 23 15:30:00 2007
Mar 23 15:30:30 vm02 nfsen[5118]: No continous profiles - nothing to profile
Mar 23 15:30:30 vm02 nfsen[5118]: Update profile live in group .
Mar 23 15:30:30 vm02 nfsen[5118]: Add .:live:200703231520
Mar 23 15:30:30 vm02 nfsen[5119]: connection on UNIX socket
Mar 23 15:30:30 vm02 nfsen[5119]: comm server started: 7851
Mar 23 15:30:30 vm02 nfsen[7851]: Cmd Decode: run-plugins
Mar 23 15:30:30 vm02 nfsen[7851]: Plugin Cycle: ., live, 200703231520
Mar 23 15:30:30 vm02 nfsen[7851]: Plugin Cycle: Time: 200703231520,
Profile: live, Group: ., Module: PortTracker,
Mar 23 15:30:30 vm02 nfsen[7851]: PortTracker run: Profile: live, Time:
200703231520
Mar 23 15:30:30 vm02 nfsen[7851]: /usr/local/bin/nftrack -M
/home/nfsen/profiles/live/vakum_gw:uninett_gw -r nfcapd.200703231520 -d
/home/nfsen/profiles/nftrack -A -t 200703231520 -s -p -w
/home/nfsen/profiles/nftrack/portstat.txt
Mar 23 15:30:30 vm02 nfsen[5118]: End periodic at Fri Mar 23 15:30:00 2007
Mar 23 15:30:30 vm02 nfsen[5118]: Run expire at Fri Mar 23 15:30:00 2007
Mar 23 15:30:30 vm02 nfsen[5118]: End expire at Fri Mar 23 15:30:00 2007
Mar 23 15:30:31 vm02 nfsen[7851]: nftrack died with signal 11, without
coredump
Mar 23 15:30:31 vm02 nfsen[7851]: /usr/local/bin/nftrack -d
/home/nfsen/profiles/nftrack -S -p -w
/home/nfsen/profiles/nftrack/portstat24.txt
Mar 23 15:30:31 vm02 nfsen[7851]: nftrack exited with value 0
Mar 23 15:30:31 vm02 nfsen[7851]: PortTracker run: Done.
Mar 23 15:30:31 vm02 nfsen[5119]: comm child 7851 terminated Exit: 0,
Signal: 13, Core: 0

If I try to run this manually I get this message:
vm02:/home/nfsen/plugins# /usr/local/bin/nftrack -M
/home/nfsen/profiles/live/vakum_gw:uninett_gw -r nfcapd.200703231515 -d
/home/nfsen/profiles/nftrack -A -t 200703231515 -s -p -w
/home/nfsen/profiles/nftrack/portstat.txt
Error get data: Requested time slot 'Mar 22 2007 15:10:00' later then
last available time slot 'Mar 05 2007 10:30:00'
Remove stat line Thu Mar 22 15:10:00 2007

Segmentation fault

(This file which the log is reffering to does not exist:
/home/nfsen/profiles/nftrack/portstat.txt)

Any ideas what is wrong?

Regards,
Rune Sydskjør, UNINETT

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to