Hello,

Yesterday a did this to try to get this working:

bla:/data/nfsen/libexec# vi NfSenRRD.pm
                  # my $sampling_rate = exists
NfConf::sources{$channel}{'sampling_rate'} ?
NfConf::sources{$channel}{'sampling_rate'} : 1;
                  $profileinfo{'channel'}{$channel}{'scale'} =
$profileinfo{'channel'}{$channel}{'sign'} eq "-" ? -1 : 1;
                  push @DEFS,
"DEF:data${channel}=$NfConf::PROFILESTATDIR/$profiledir/${channel}.rrd:${what}:AVERAGE";

                  # my $sampling_rate = exists
NfConf::sources{$def}{'sampling_rate'} ?
NfConf::sources{$def}{'sampling_rate'} : 1;
                  $$profileinfo{'channel'}{$def}{'scale'} =
$$profileinfo{'channel'}{$def}{'sign'} eq "-" ? -1 : 1;

#-----------------------------------------------------------#

I changed -1 : 1 to -1000 : 1000 this is the sample rate i am using.
It seems to work but it would be much nicer not to hack the code and to 
configure it with every channel... This doesn't change the "raw" data 
output when you want to process something. It only changes the graphs.
Thanks,

Koen



Szymon Trocha wrote:
> Peter Haag wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>>
>> - -------- Original Message  --------
>> From: Szymon Trocha <[EMAIL PROTECTED]>
>> To: [email protected]
>> Subject: [Nfsen-discuss] How to configure sampling rate
>> Date: Thu Aug 31 2006 13:16:06 GMT+0200 (CEST)
>>
>>> Hi all,
>>>
>>> I'm a new user of this application.
>>>
>>> I have two sources of NetFlow v5 using two different sampling rates 
>>> each. How can I configure nfsen to display the exact and real traffic or 
>>> packet levels as it seems the graphs show much less traffic than it goes 
>>> through the routers (rather single Mbs then hundreds of Mbs).
>>>
>>> I'm using nfsen-1.2.4 and nfdump-1.5.2
>> Up to know, you can not configure sampling rates, however a simple multiply 
>> may do the trick.
>> I can prepare a patch for 1.2.4. Stay tuned.
> 
> Hi Peter,
> 
> If there any chance to have this feature (of a simple multiply) in near 
> future?
> 
> regards,

-------------------------------------------------------------------------
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