Picky, picky, picky.

it seems a reasonable change - all that's done with the value is to store in
from the DS: line in rrd_create.c and then compare it in rrc_update.c.

               /* make sure pdp_temp is neither too large or too small
                * if any of these occur it becomes unknown ...
                * sorry folks ... */
               if ( ! isnan(rate) &&
                    (( ! isnan(rrd.ds_def[i].par[DS_max_val].u_val) &&
                         rate > rrd.ds_def[i].par[DS_max_val].u_val ) ||
                    ( ! isnan(rrd.ds_def[i].par[DS_min_val].u_val) &&
                        rate < rrd.ds_def[i].par[DS_min_val].u_val ))){
                  pdp_new[i] = DNAN;
               }

Not using 'U' is a valuable safety valve against uninitialized storage,
however - I just wish there was a way to determine the bit rate of the
interface and use a reasonable value.

What does mii-diag (ftp://ftp.scyld.com/pub/diag/mii-diag.c) show for the 1
Gbps interface?

-----Burton

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of Kouprie, Robbert
> Sent: Monday, January 19, 2004 8:59 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [Ntop-dev] [PATCH] RRDPlugin - 1 Gbit is getting common...
>
>
> I *am* using NetFlow on 1gbit ;)
>
> > -----Original Message-----
> > From: Burton M. Strauss III [mailto:[EMAIL PROTECTED]
> > Sent: Monday, January 19, 2004 3:46 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [Ntop-dev] [PATCH] RRDPlugin - 1 Gbit is getting
> > common...
> >
> >
> > man rrd
> >
> > It suggests not using U so that rrd can perform "a basic
> > sanity check" on
> > the data.
> >
> > But I suppose 1G is reasonable for now.
> >
> > Of course, the chance that ntop can keep up with 1Gbps -
> > unless you're using
> > netFlow and heavy compression is zero...
> >
> > -----Burton
> >
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf
> > > Of Kouprie, Robbert
> > > Sent: Monday, January 19, 2004 7:08 AM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: [Ntop-dev] [PATCH] RRDPlugin - 1 Gbit is getting common...
> > >
> > >
> > > Use 1 Gbit as maximum line speed to compute the RRD's topValue.
> > > BTW: why not
> > > use "U" (unlimited)?
> > >
> > > -- Robbert
> > >
> > > --- rrdPlugin.c.orig    2004-01-19 11:53:28.000000000 +0100
> > > +++ rrdPlugin.c     2004-01-19 13:55:01.000000000 +0100
> > > @@ -563,7 +563,7 @@
> > >      int value1, value2;
> > >      unsigned long topValue;
> > >
> > > -    topValue = 100000000 /* 100 Mbps */;
> > > +    topValue = 1000000000 /* 1 Gbit/s */;
> > >
> > >      if(strncmp(key, "pkt", 3) == 0) {
> > >        topValue /= 8*64 /* 64 bytes is the shortest packet
> > we care of */;
> > >
> > >
> > > _______________________________________________
> > > Ntop-dev mailing list
> > > [EMAIL PROTECTED]
> > > http://listgateway.unipi.it/mailman/listinfo/ntop-dev
> > >
> >
> > _______________________________________________
> > Ntop-dev mailing list
> > [EMAIL PROTECTED]
> > http://listgateway.unipi.it/mailman/listinfo/ntop-dev
> >
>
>
> _______________________________________________
> Ntop-dev mailing list
> [EMAIL PROTECTED]
> http://listgateway.unipi.it/mailman/listinfo/ntop-dev
>

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to