Hi all,
Find appended a patch, which fixes the problem for not profiling the history 
data correctly. The bug is triggered, when
setting ZIPprofile to 1 in nfsen.conf. A new NfSen release, which fixes some 
more issues, especially Perl compatibility,
will be released soon.

Thanks Wim for your support!

        Cheers

        - Peter


-- 
Be nice to your netflow data. Use NfSen and nfdump :)
--- NfProfile.pm.orig   2014-03-26 21:18:17.000000000 +0100
+++ NfProfile.pm        2014-03-26 21:19:27.000000000 +0100
@@ -915,7 +915,8 @@
 
        my $profilepath = ProfilePath($name, $group);
        my $subdirlayout = $NfConf::SUBDIRLAYOUT ? "-S $NfConf::SUBDIRLAYOUT" : 
"";
-       my $arg = "-I -p $NfConf::PROFILEDATADIR -P $NfConf::PROFILESTATDIR 
$subdirlayout $NfConf::ZIPprofiles";
+       my $arg = "-I -p $NfConf::PROFILEDATADIR -P $NfConf::PROFILESTATDIR 
$subdirlayout ";
+       $arg   .= "-z " if $NfConf::ZIPprofiles;
 
        # create argument list specific for each channel
        # at the moment this contains of all channels in a continues profile
@@ -1369,7 +1370,8 @@
                        }
                        my $channellist = join ':', keys 
%{$liveprofile{'channel'}};
                        my $subdirlayout = $NfConf::SUBDIRLAYOUT ? "-S 
$NfConf::SUBDIRLAYOUT" : "";
-                       my $arg = "-I -p $NfConf::PROFILEDATADIR -P 
$NfConf::PROFILESTATDIR $subdirlayout $NfConf::ZIPprofiles";
+                       my $arg = "-I -p $NfConf::PROFILEDATADIR -P 
$NfConf::PROFILESTATDIR $subdirlayout ";
+                       $arg   .= "-z " if $NfConf::ZIPprofiles;
 
                        # profile missing slots
                        if ( $t <= $tend ) {
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to