From: Carsten R. <car...@ea...> - 2001-12-04 07:23:49
|
> > myds1 = > > -:%auto-base%/../cricket-data/path/to/myinterface_1.rrd:ds0:AVERAGE > > myds2 = > > -:%auto-base%/../cricket-data/path/to/myinterface_1.rrd:ds1:AVERAGE > > That's a bit... ugly, isn't it? You're right. (I mentioned, it is a hack) > The grapher.cgi code is ugly enough as-is. What's needed for this to be > solved cleanly is a syntax for looking up other data sources to be used > for input to the RPN based on the scale attribute. You should be able to > write something like > > graph foo > scale=ifSpeed,ifInOctets,/,100/* > > (that is not possible in the current implementation, before anyone > starts trying it). I agree. This (above, not my hack) should be the implementation in future versions of grapher.cgi. > I'm not Mr Cricket, but I'd strongly oppose any change to the > grapher that doesn't go the extra mile to implement this cleanly (and > yes, I acknowledge that the functionality you present is asked for > numerous times and that the patch does what it intends to do, so > people who need it should feel free to experiment with this patch). This patch was intended only as a workaround for all who can't wait for this functionality, I never wanted the hack getting into "official versions". I should have written it in my 1st posting, sorry. -- Carsten Ranfeld Network Operations EastLink GmbH Chemnitz |