Koen wrote:
> 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.
That's enough for me now to change graphs only. But as you say it would
be useful to configure per source.
Regards,
--
Szymon Trocha
Poznan Supercomputing & Ntw. Center ::: NETWORK OPERATION CENTER
Tel. (+48 61) 8582022
http://noc.man.poznan.pl ::: http://noc.pionier.gov.pl
-------------------------------------------------------------------------
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